Create a file system object to do the following
i. Create a folder
ii. Create a text file in the folder
iii. Update text file with some tex
Answers were Sorted based on User's Feedback
Answer / usha
set fso=createobject("scripting.filesystemobject")
set f= fso.createfolder("C:UserssingarsyDesktopusha")
set file= f.createTextFile("abc.txt",2)
file.write("masdkmas.........")
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / saravanan_jasmin
set objF=CreateObject("Scripting.FileSystemObject")
Set objW = WScript.CreateObject("WScript.Shell")
curr = objW.CurrentDirectory
path=curr&"folder"
txtpath=path&" extfile.txt"
objF.CreateFolder(path)
objF.CreateTextFile(txtpath)
set objWrite=objF.OpenTextFile(txtpath,2)
objWrite.Write("someText")
| Is This Answer Correct ? | 0 Yes | 0 No |
What are class properties?
How to create MSAcess table foriegn key
How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'
Explain the asc function?
Explain the operator precedence in vb script?
write a vb script to display the size of the folder,date created and name of the folder
Explain the adodb.stream class?
Find Out Length of an array without using Ubound?
What is parametrization ?
Why is it recommended to close the database connection every time after the work is completed?
write a vb script to rename a folder from tree4 to tree7
wat is com(common object model)object for mozilla firefox??? if any knows the exact answer....plz rply me