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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / saravanan_jasmin
set objF=CreateObject("Scripting.FileSystemObject")
Set objW = WScript.CreateObject("WScript.Shell")
curr = objW.CurrentDirectory
path=curr&"folder"
txtpath=path&" extfile.txt"
objF.CreateFolder(path)
objF.CreateTextFile(txtpath)
set objWrite=objF.OpenTextFile(txtpath,2)
objWrite.Write("someText")
| Is This Answer Correct ? | 0 Yes | 0 No |
How to throw an error in vbscript?
am giving to one number u can set into that in date format.u can use any methods
hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?
what is the function to get the ascii value of the character?
How to open a file. What is the perpose of true and false mode there?
What is the difference between a dictionary and an array?
What are the rules to name variable in vbscript?
write a qtp script to count the number of minimized windows
what is the standards used for writing the script in QTP
Which operator can be used to do an xor operation in vbscript?
Can u describe what kind of testing are for OTC derivates by banks.
How do you declare a variable in vbscript?