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

1.I want to establish connection with excel and also want to fetch the data using SQL queries. 2.the code should be written in such a way that in future if I want to migrate from excel to MS excess database , then there should be minimal changes.

1614


What is vbscript language used for and which earlier language is it modeled upon?

626


what is event handling?

662


How to create a cookie using vbscript?

683


Explain the .wsf files?

615






Mention if qtp generates vbscript code as we record actions, can't it possible to directly write using vbscript code when qtp does the same thing too?

620


If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?

627


Explain the functionality of vbscript?

618


Mention what is byref and byval parameters in vbscript?

659


When are redim statement and preserve keyword used in the vbscript language?

710


How will you check that a variable is an array in vbscript?

625


Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com

1147


Both Static and dynamic arrays are handled by VB script. Is it true?

699


What's the difference between vbscript and vb.net?

627


Illustrate briefly about the different types of statement

2107