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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

create a form to accept username and password validate the username and password with using message box, display the corresponding user message

2165


Explain about tristate constants?

587


What is the use of the ‘open’ method to work with the database in the vbscript language and what connection string is passed in the same and what is its usage?

489


what is diff between static and dynaic arrys?

1590


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)

3194






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

616


If else for do while select in vb script?

645


how to automatically update the sql server2005 database records when insert in vb6?

1489


What are lbound and ubound in the vbscript language?

609


If a calulator having 3 buttons (of any number)in 3 of them one is not working properly due to which answer is wrong always. write a script to find out which button is not working properly ?

1564


write any ttest cases using check points and parameterization

1823


How many types of procedures are available in the vbscript language?

536


Explain How do you create a recordset object in vbscript?

568


What are class properties?

657


What are the rules to name variable in vbscript?

587