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
1. How to handle object implementation change in DP for Ex: i have login page with username,pasword (editboxes),login,cancel(buttons). Here i written DP code for login page with the help properties. My questions: 1.If properites are changing dynamically i will do (i want code for that) 2.if objects are changed dynamcally i will do (i wnat code for that)
How to capture a runtime error in vbscript?
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
how to write a vb script in QTP for yahoo registration form, i want to check the performance also like performance test, stress, load test like that.
Explain about the asc function?
What is the extension of the vbscript file?
regular expression that will recognize a browser as long as its name property starts with mybrowser
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..
What is the use of the ‘open’ method to work with the database in the vbscript language and what connection string is passed in the same and what is its usage?
Explain about operator precedence in vb script?
Which operator can be used to check if two numbers are equal or not in vbscript?
Hi All, I am facing one problem in QTP. There is link object in my application that exist in the Frame in mozilla firefox. Click event on that object is not working but once the frame is enabled/activated then click event works fine.But the frame does not have the activate property. This problem is coming in firefox only. Regards
How to take whole text output from screen of Bitmap Application.
How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.
what is resorceallocation