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
How to open a file. What is the perpose of true and false mode there?
Which keyword is used to declare a variable in the vbscript language?
How you can call vbscript functions?
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?
How many types of procedures are available in the vbscript language?
What is the difference between for loop and while loop?
Explain sga memory structures?
What is the purpose of on error resume next statement?
after medical test,when will be the police verification
How many types of operators are available in the vbscript language?
Explain about operator precedence in vb script?
Explain the extension .hta?
Sub link() Dim k As Integer Dim rand As Integer Dim URL As String Dim foldernum As Integer Dim folderstring As String Dim filenum As Integer Dim filestring As String k = 1 'for AC Numbers For i = 11 To 40 foldernum = 0 foldernum = 1000 + i folderstring = CStr(foldernum) folderstring = Mid(folderstring, 2, 3) folder = "ac" & folderstring 'folderstring = Sheets(2).Cells(i, 1) ' for Number of Random files For j = 1 To 10 rand = Int(Rnd * (200 - 1) + 1) filenum = 0 filenum = 1000 + rand filestring = CStr(filenum) filestring = Mid(filestring, 2, 3) 'URL = "http://ceobihar.nic.in/PSCDROM/ac" & folderstring & "/i" & folderstring & "0" & filestring & ".pdf" URL = "http://www.elections.tn.gov.in/pdfs/dt1/" & folder & "/" & folder & filestring & ".pdf" ' URL =http://www.wb.nic.in/wbeco/EROLLS/PDF/English/A001/a0010105 .pdf Cells(k, 1) = folderstring Cells(k, 2) = folder Cells(k, 3) = filestring Cells(k, 3) = URL k = k + 1 Next j Next i End Sub plz define it
Can automation testing find ssame no. of bugs what we can find by manual testing?
What is the technology used by vb script?