write a vb script create 5 folders test1 test2 test3 test4
test5

Answer Posted / manjunathareddy

Dim Fso
Dim oFolder
Set Fso=CreateObject("Scripting.FileSystemObject")
For i=1 to 5
Set oFolder=Fso.CreateFolder("C:\Test"&i)
Next

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to set one column as primary key in QTP and fetch values accordingly

1991


Which object is used to work with the database in the vbscript language and what statement is used to create this object?

645


how to answer "TELL ME ABOUT UR SELF" as exp.person. whr to start and whr to stop. can anyone tel me

1491


A folder is there inside no of textfiles are avilable. How do count the textfiles. Normally folder means we are using subfolder methods but textfiles is not working for subfolder methods and how do get file name also.

1663


What are keywords in the vbscript language?

672






Mention when to use function procedures and what are its characteristics?

775


what is the differance between BYVAL,BYREF?

1932


Plzzzzzzz can any one tell me which is the best institute in hyderabad for learing VBScript. plz do answer guys its urgent plzzzzzzz. thanks in advance.

1905


Why to use option explicit in vb script?

757


Which function allows you to instantiate an object given its programmatic identifier or progid?

723


write a function to read the items from combobox of Flight reservation & save in excel (QTP)??

2544


PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com

1812


Why is error handling required?

712


after medical test,when will be the police verification

1858


Which date function is used in the vbscript language to find the difference between the 2 dates?

754