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 |
How to write Descriptive programming in .VBS file i wrote this code but it is giving error.. Dim qtApp set qtApp=createobject("QuickTest.Application") qtApp.Launch qtApp.Visible=True Set objIE = CreateObject("InternetExplorer.Application") objIE.visible = True objIE.Navigate "www.gmail.com" browser("title:=gmail").title("title:=gmail")
how to retrive the tooltip by using descriptive programming in qtp?
What is the output of a + b in vbscript if a = 5 and b = 10?
Which operator is used to concatenate the 2 values in the vbscript language?
I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..
How to delete a cookie using vbscript?
What is the use of option explicit statement?
What is the difference between do until loop and do while loop?
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 many types of recording are there?
wht must be the interview question on corinthian information technology solutions incorporated.
What is the event handling in vbscript?