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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which operator can be used to check if two numbers are equal or not in vbscript?

760


I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..

1896


Explain the asc function?

581


Explain about the asc function?

694


What is purpose of scripting.filesystemobject class in vbscript?

746






Mention what is select case statement?

624


How to Import data from a file (file is on the desktop) to the data table

1635


why do u choose to go for testing why cant for devoloping

1702


Which operator can be used to change the value of the operand or change the state of the condition?

673


How to write functions and sub in vb script?

701


How will you format a number in percetage format in vbscript?

668


What is the scope of a constant declared using public?

642


Explain the .wsf files?

615


Explain about the extension .hta?

725


How to open excel in vb script?

660