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

Mention how to create a cookie using vbscript?

532


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

529


What is the purpose of the err object in the vbscript language?

626


regular expression that will recognize a browser as long as its name property starts with mybrowser

1763


hi i am trying for testing job for 3+ experience(fake) can u suggest me what type of projects i can keep in my resume and how much of knoeledge i should have abt that project.thnks in advance.urgt plz

2584






Explain about constants in vb script?

575


Explain about the support of asp for vb script functionality?

529


Write a Script for ATM in QTP

3343


What is the use of option explicit statement?

585


Mention how to access array data?

513


filter the array values without using filter function?

1657


why variable name should not exceed 255 characters?

1822


while using Keyward driven framework in QTPif new requirements are added how to manage it...plz ans

1568


what is used of Property........End Property loop ? how to write the script for it?

1688


What are class properties?

657