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

what is test scenario?

1 Answers  


How to remove the spaces in a string Ex: "Welcome to QTPWorld" ?

10 Answers   Cap Gemini, CTS,


How to generate 3 digit random number?

3 Answers   IBM, Virtusa,


Mention what is the difference between vbscript and vba?

0 Answers  


when we use filter funtiom invb script(QTP)

0 Answers   TCS,






explain with example primitive data types of vb script.

1 Answers  


Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)

0 Answers   Quest,


write a vb script to display the code "vbscripting" alphabet by alphabet(i e 1st v then b and up to g)

2 Answers  


How are arrays declared in the vbscript language?

0 Answers  


Hi anyone Can Send Solution to the Question wt m posting now Prepare Script for the Bellow Scenario? Login to Gmail Page Open Inbox check Mails save them in a Folder

0 Answers   IBM,


How will you get a string with the specified character the specified number of times in vbscript?

0 Answers  


Can automation testing find ssame no. of bugs what we can find by manual testing?

0 Answers  


Categories