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

Hai this is sheik, i want to learn VB scripts for web application pls guide me what are all basic things need to know to learn VB scripts in web application.

1673


Explain the asc function?

706


Mention what is select case statement?

752


In what way program "hello world" you can write in vbscript?

900


What are the environments supported by vbscript language?

722


Write a Script for ATM in QTP

3620


Explain vbscript in detail?

836


What are the rules to name variable in vbscript?

810


Explain about the extension .hta?

856


How to assign a date value to a variable?

801


Why is it recommended to close the database connection every time after the work is completed?

728


We have 1 web page with names column. I am giving the Service Providers1,2,3.... @ that time dynamically some no of names are displaying in the webpage and The Pop up windows are opening(No.of Pop Up windows=No.of Names). The names may be diffar for each and every Service Provders (Dynamically) How can we handle the Dynamic values?

1979


What are keywords in the vbscript language?

757


Explain about operator precedence in vb script?

838


How are values assigned to string type and numeric type variables?

770