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

Compare java script and vb script?

597


Hello friends..... Can any give the methods for Ms-Access, and Mozilla firefox in Automation Object Model in QTP. Please give me currect answers... if you do not understand my question please don't give answers. Thanking you.

1853


give me any information abou vb script books learn quckly

1661


i wrote vbscripit code in notepad i got error i am in learning stage if u ps tell me what wrong in my code my error is "object required descriptive at line one run time error"and my code is "set usernameobj=Descriptive.Create() usernameobj( "name").value="Username" set passwordobj=Descriptive.Create() passwordobj("name").value="password" set signinobj=Descriptive.Create() signinobj("name").value="sigin" browser("gmail").page("gmail").WebEdit("usernameobj").set ("enter username") Browser("gmail").Page("gmail").WebEdit("passwordobj").Set secure.Crypt.Encrypt("enter password") browser("gmail").page("gmail").WebButton("siginobj").click

1421


Explain the string concatenation function in vbscript?

544






How to make sure that items in a wintree are sorted al?

2358


What are string functions in vbscript?

658


How regexp.execute method works?

593


HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.

2066


What is the purpose of the err object in the vbscript language?

630


Is VB Script Case sensitive or Case insensitive?

640


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

1343


Which function is used to perform string comparison?

568


did any one attended interview in applabs if you had gone through plz tell me the procedure

1864


Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?

2593