write a vb script to rename a folder from tree4 to tree7
Answer Posted / ranadheer
dim vfso
set vfso=createobject("scripting.filesystemobject")
vfso.renamefolder "C:\tree4","C:\tree7"
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain about scrrun.dll in vbscript?
How to create a cookie using vbscript?
Explain sga memory structures?
Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?
What is the purpose of the err object in the vbscript language?
1) How can we use VB script in testing the application? 2) What all are the things(Software application to be installed in PC) we need to learn VBscript?
Mention the environments where vbscript could be run?
How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.
What is Procedure or Subroutine in VB Script?
How can you fetch the value of a cookie?
How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'
Explain the string concatenation function in vbscript?
Hi Friends my Question is very simple,in Manual testing when we click on a hyper link it directs us to the relavent page or it re-directs us to the current page,so there we can easily write testcase but same thing if we do in automation script using QTP & need to generate report using Reporter.report event how we will do it?thanks in advance...
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
Explain about filter expression?