how to delete folder test3,test4 and test5 using vbscript?

Answers were Sorted based on User's Feedback



how to delete folder test3,test4 and test5 using vbscript?..

Answer / mudaseer

dim vfso
set vfso=createobject("scripting.filesystemobject")
for i=3 to 5
vfso.deletefolder "C:\test" &i
next

Is This Answer Correct ?    1 Yes 0 No

how to delete folder test3,test4 and test5 using vbscript?..

Answer / manjunathareddy

Dim Fso
Set Fso=CreateObject("Scripting.FileSystemObject")
For i=3 to 5
Fso.DeleteFolder("C:\Test"&i)
Next

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More VB Script Interview Questions

How do you write an SQL insert statement?

4 Answers   HCL,


hi all, i had a question, that how to find out hiding a coloumn in a table i had a table having the following column names NAME DESCRIPTION CREATED TIME CREATED USER if i right clicked on a NAME column it will displays a menu having the same column names in a list like NAME DESCRIPTION CREATED TIME CREATED USER with check boxes.if i unched any check box, that column name should not be appear in the main table column names could anyone please solve this problem?

0 Answers   Livetek,


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

0 Answers  


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

0 Answers  


How can you fetch the value of a cookie?

0 Answers  






Which in-built function is used to format the number in the vbscript language?

0 Answers  


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

3 Answers  


Explain the filter expression?

0 Answers  


Explain about the support of asp for vb script functionality?

0 Answers  


How to make sure that items in a wintree are sorted al?

0 Answers   Ness Technologies,


How to capture a runtime error in vbscript?

0 Answers  


what is diff b/n these 2 programs 1) for i=5 to 1 step 2 msgbox "pass" next 2_) for i=5 to 1 step -2 msgbox "pass" next

5 Answers   Hexaware,


Categories