write a script to count no drives in file systems in qtp?
Answer Posted / sandeep
Set FSO=CreateObject("scripting.filesystemobject")
Set coll=fso.Drives
MsgBox coll.Count
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
For a webbased application:- what should be code in expert veiw, for retrieving a single column name "username" from a server and checking whether exported "username" from datatable doesn't exist in server. suppose i have saved in excelsheet a username="gayatri" , which is exported, then checked for whether this username "gayatri" exist in server database or not ? if exist then allow to enter new username, which should be again checked for in loop , or else come out of loop and enter a distinct "username". plz let me have this answer in my id gayatrisahooin@hotmail.com
How will you convert a string to upper case string using vbscript?
What is the difference between for loop and while loop?
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
What are class events?
Compare java script and vb script?
What is the purpose of the err object in the vbscript language?
How to create a function in vbscript?
How to throw an error in vbscript?
Explain sga memory structures?
How will you compare two strings in vbscript?
how does vb script help in web page designing? explain with example.
How to Enter Values on the Command promt using VB script
why do u choose to go for testing why cant for devoloping
how to increasing the numbers in a given text box please write a vb script