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

How to Import data from a file (file is on the desktop) to the data table

1757


how to answer "TELL ME ABOUT UR SELF" as exp.person. whr to start and whr to stop. can anyone tel me

1557


Explain some uses of vb script?

766


What is the extension of the vbscript file?

759


Mention what is the difference between vbscript and vba?

732


if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.

1652


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

772


what is the difference between modular and data and keyword driven framework

1949


How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'

3514


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

955


What are the data types supported by vbscript?

801


Explain a few date functions in vbscript

758


who will create the object?

1728


Mention what is the technology used by vb script?

727


What is the difference between do until loop and do while loop?

795