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 |
Is vbscript a case-sensitive or case-insensitive?
write a vb script to generate hello 5 times using do until loop
HI how can handle dynamic image through vb script example we have to create email id fill the edit box(these latters change wrong password) i am wating your answer
Plz give the vb script for the following scenerio. In travel booking we have to select from delhi to mumbai from the combobox The prices will be display in another combo box .But i have to select the lowest price for it and submit it
Mention what is the technology used by vb script?
How will you get a random number between 0 and 1 in vbscript?
How to load vbs functions in qtp
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
What is the difference between function and procedure?
write a vb script to display apple that is 1st a should be displayed then ap then app then appl then apple
Explain about arrays in vb script?
What is loose binding? Why is it not a good practice to use it?