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
What is the event handling in vbscript?
Which in-built function related to an array joins substrings into one string in the vbscript language?
Set srchobj=Description.Create() srchobj("type").value="text" srchobj("name").value="q" srchobj("html tag").value="input" browser("micclass:=google").Page("micclass:=google").webedit (srchobj).Set "qtp" what's wrong in my code pls tell me ? the above code working fine and i got my result pass,now i am trying to run the program it shows general run time error why?pls help me i am in learning stage ?
What are lbound and ubound in the vbscript language?
How to open excel in vb script?
What is vbscript?
hi all, i had a question, that how to find out hiding a coloumn in a table i had a table having the following column names NAME DESCRIPTION CREATED TIME CREATED USER if i right clicked on a NAME column it will displays a menu having the same column names in a list like NAME DESCRIPTION CREATED TIME CREATED USER with check boxes.if i unched any check box, that column name should not be appear in the main table column names could anyone please solve this problem?
What is the main difference between function and sub-procedure?
where can i learn VB scripint ?
Is VB Script Case sensitive or Case insensitive?
Why to use option explicit in vb script?
Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?
Explain about the support of asp for vb script functionality?
Explain about constants in vb script?
What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?