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
Explain about tristate constants in vbscript?
How to open a file. What is the perpose of true and false mode there?
How to create a cookie using vbscript?
How will you get the last occurrence of one string within another string using vbscript?
What is the use of the recordset object and which statement is used to create such an object?
Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?
how to answer "TELL ME ABOUT UR SELF" as exp.person. whr to start and whr to stop. can anyone tel me
Mention what is variant in vbscript?
how to write validation function for date in vb script
How to assign a date value to a variable?
How to make sure that items in a wintree are sorted al?
write a program to display configuration of a local system with the help of vb script.
How will you get the natural logarithm of the given number in vbscript?
What's the difference between vbscript and vb.net?
Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?