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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between VBScript and JavaScript?

2057


I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..

1801


Explain about the asc function?

601


Mention how to access array data?

510


Which constant is used for print and display functions and works as same as pressing enter key?

524






How will you get the exponent of the given number in vbscript?

551


What is the technology used by vb script?

539


What are the differences between sub procedures and function procedures?

517


Mention what is variant in vbscript?

552


why do u choose to go for testing why cant for devoloping

1585


Mention what if you do not specify anything when you call a procedure?

570


How to create a function in vbscript?

585


i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me

1795


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 ?

1550


How will you get the smallest subscript of an array in vbscript?

802