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

Answers were Sorted based on User's Feedback



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

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

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

Answer / simha

It is correct. automatically created 5 folders using this
VB script.

Is This Answer Correct ?    0 Yes 0 No

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

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

Post New Answer

More VB Script Interview Questions

There is a web Table where You will find Two Columns First Column consist of Check box and Second column consist of Test cases ID(Viz T1,T2,T3....Etc); If You select any Test case ID, respective Check boxes to be checked write a VBSCRIPT for this scenario?

1 Answers   eMids,


Explain about constants in vb script?

0 Answers  


how to declare a variable in vbscript using vbscript

4 Answers  


i created script for login in QTP,i parametirized that using global sheet,problem i am facing is first i want to login with first values provided in excelsheet and want to perform some operation,second time if call same action it should login with second values in excelsheet

2 Answers   TCS,


How will you get the last occurrence of one string within another string using vbscript?

0 Answers  


Am working with web application. i faced one senario. i.e, webpage having webtable having two coloumns, in that first coloumn is for serial no and second coloumn is for mac address link, now i want to get first row second coloumn value, that having macaddress as link. Please help me how to get that link?

2 Answers  


write generic functions for webapplication?like generic function for webedit generic function for webbutton generic function for links

1 Answers  


Difference between dim,public and private variables in vb script?

0 Answers  


explain with example primitive data types of vb script.

1 Answers  


write a vb script to find the size of d drive?

3 Answers  


Write VB script to convert from feet to inches(hint 1feet=12 inches)

2 Answers  


how to comvert 120 into one hunderd twenty rupees only and vice varsa

0 Answers  


Categories