write a vb script create 5 folders test1 test2 test3 test4
test5
Answers were Sorted based on User's Feedback
Answer / mudaseer
set fso=createobject("scripting.filesystemobject")
for i=1 to 5
fso.createfolder "C:\test" &i
next
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / simha
It is correct. automatically created 5 folders using this
VB script.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / 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 |
How will you get a combined string from array of string in vbscript?
Difference between Do while loop and while wend loop
we executed QTP scripts in one browser(i.e IN)same scripts is working on another browsers or not (i.e mean netscap,m azol..like )
Develop a parameterized action that accomplishes the following a. Launch a browser of users choice ( example : IE, chrome etc) b. Open up a search engine (Google, Bing etc) c. Perform a search d. Click a particular link depending on the user’s choice ( 1st , 2nd or third link)
how to write function to validate the number of characters entering into the text box?
Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).
which is the bset training centre to learn automation tools?
What are class variables?
what is the difference between modular and data and keyword driven framework
Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?
How to pass the parameter from one function to another function in VB Scripting?
hi Set myobj=Description.Create() myobj("type").value="submit" myobj("name").value="google search" myobj("html tag").value="button" browser("title:=google").page("title:=google").webButton (myobj).Click i was running above code in one weak back it was working fine i got result,again i opened after few days ,again i was trying to run the code it shows run time error in last line of my code ,why ?pls answer my question?