write a vb script create 5 folders test1 test2 test3 test4
test5
Answers were Sorted based on User's Feedback
Answer / mudaseer
set fso=createobject("scripting.filesystemobject")
for i=1 to 5
fso.createfolder "C:\test" &i
next
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / simha
It is correct. automatically created 5 folders using this
VB script.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / manjunathareddy
Dim Fso
Dim oFolder
Set Fso=CreateObject("Scripting.FileSystemObject")
For i=1 to 5
Set oFolder=Fso.CreateFolder("C:\Test"&i)
Next
| Is This Answer Correct ? | 0 Yes | 0 No |
Consider there are objects in a webapp which are identified by QTP. Suppose you know only the logical name of a object(absolutely nothing else about it). Which approach will you take to find the "micClass" of the object(You can't use Object Spy, or can't add the object in repository)?
What is the purpose of regexp object in vbscript?
Which data type/types are supported by vbscript language and what are their specialties?
Can u describe what kind of testing are for OTC derivates by banks.
Explain the arrays in vb script?
best training centre in bangalore
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?
I want to count the total no of links present in yahoo home page. The script like Set fileSysObject=createobject("Scripting.FileSystemObject") Set linksFileName=fileSysObject.opentextfile("D:\samplelinkfile.txt",2,true) Set linkDescObj=description.Create linkDescObj("micclass").value="Link" Set noOfLinks=browser("yahoo").Page("Yahoo!India").ChildObjects(linkDescObj) For i=0 to noOfLinks.count-1 linkName=noOfLinks(i).getROProperty("name") linksFileName.writeline(linkName) Next linksFileName.close Set fileSysObject=nothing But while running the script it is fail (the object not present in the object repository).How to overcome please tell me the detail steps...for QTP9.30
How to Import data from a file (file is on the desktop) to the data table
I want to run QTP script on Linux server is it possible to do this by connecting Windows to Linux through VPN/Terminal Server and just run the script on Linux server.
How will you format a number in percetage format in vbscript?
What is the use of option explicit statement?