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 |
Mention what is select case statement?
Mention what is vbscript?
Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?
Could Anybody tell me the Script for REVERSE an Interger int reverse(int num) Ex:246 to 642.. Thanks in Advance.
Description.Create
write a vb script to open a text file and write into it
Why to add checkpoint in QTP What's the purpose of checkpoints & how to add it
i want to when we will write the scripts either after getting the build or after getting the SRS?
Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com
Write a program to display the numbers in the below format using for loops? 1 2 3 4 5 6 7 8 9 10 11 12 and Write a program to display the numbers in the below format using for loops. 1 2 3 4 5 6 7 8 9 10
Mention what are the rules to name variable in vbscript?
when you use For Loop, While..do, do..while? at what situations which loop will use.