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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

can anyone tell me the procedure of interview held in applabs

1959


How can constants be declared in the vbscript language?

756


Which keyword is used to declare a variable in the vbscript language?

707


What is byref and byval parameters in vbscript?

817


Write a function for Instr(). We need to write a function that works as same as Instr(). Code or Even pseudo code is good enough for me.?

2265


Explain different types of segment?

787


When does ‘on click of button’ event gets triggered in the vbscript language?

766


1.I want to establish connection with excel and also want to fetch the data using SQL queries. 2.the code should be written in such a way that in future if I want to migrate from excel to MS excess database , then there should be minimal changes.

1765


Explain some uses of vb script?

766


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

785


How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.

2713


Which operator can be used to change the value of the operand or change the state of the condition?

812


Mention how you can call vbscript functions?

808


How to pass argument by reference to a function in vbscript?

762


How to open excel in vb script?

772