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

Could Anybody Please tell me What is the script for Find 3rd Largest element in the Array without using a SORT function int Find(int arr[], int size); Thanks in Advance..

0 Answers   Amazon,


Write a VB Script to count blank Lines in a notepad

2 Answers   IBM,


Explain about scrrun.dll?

0 Answers  


Hi, I need to accept user inputs for login at runtime.I know i can use Inputbox but how to proceed further that i dont know. Thanks in advance

2 Answers  


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.

0 Answers  






Hi Friends, I have an issue like the describe below: I'm using QTP and I'm testing on SharePoint. As you knoe, SharePoint has a customize function for user, so that, If I add an object Web Table at the first time, that object was recognized by "index" and "html tag", after that, if someone change the display of web part, the "Index" of my object was changed as well and QTP unable to select that Web Table. Can you guide me how to identify or anyway to keep that Web Table object as unique object? Thanks a lot.

0 Answers   CSC,


What is the equivalent of VBScript?s On Error In Jscript ?

1 Answers   Microsoft,


How will you format a number in percetage format in vbscript?

0 Answers  


what is the function to get the ascii value of the character?

6 Answers   Netxcell, Oracle,


Which data type/types are supported by vbscript language and what are their specialties?

0 Answers  


What is the purpose of the err object in the vbscript language?

0 Answers  


Hi Friends my Question is very simple,in Manual testing when we click on a hyper link it directs us to the relavent page or it re-directs us to the current page,so there we can easily write testcase but same thing if we do in automation script using QTP & need to generate report using Reporter.report event how we will do it?thanks in advance...

0 Answers  


Categories