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

Explain about tristate constants in vbscript?

773


How to open a file. What is the perpose of true and false mode there?

759


How to create a cookie using vbscript?

746


How will you get the last occurrence of one string within another string using vbscript?

874


What is the use of the recordset object and which statement is used to create such an object?

682






Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?

2744


how to answer "TELL ME ABOUT UR SELF" as exp.person. whr to start and whr to stop. can anyone tel me

1488


Mention what is variant in vbscript?

675


how to write validation function for date in vb script

2271


How to assign a date value to a variable?

724


How to make sure that items in a wintree are sorted al?

2503


write a program to display configuration of a local system with the help of vb script.

1833


How will you get the natural logarithm of the given number in vbscript?

748


What's the difference between vbscript and vb.net?

688


Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?

689