View Single Post
Old 08-09-2009, 13:40   #10
Druchii
cf.mega poster
 
Druchii's Avatar
 
Join Date: Mar 2006
Location: Oslo, Norway.
Age: 36
Services: Canal Digital: 50/10
Posts: 7,577
Druchii has a nice shiny star
Druchii has a nice shiny starDruchii has a nice shiny starDruchii has a nice shiny starDruchii has a nice shiny starDruchii has a nice shiny starDruchii has a nice shiny starDruchii has a nice shiny starDruchii has a nice shiny starDruchii has a nice shiny starDruchii has a nice shiny starDruchii has a nice shiny starDruchii has a nice shiny starDruchii has a nice shiny starDruchii has a nice shiny starDruchii has a nice shiny starDruchii has a nice shiny starDruchii has a nice shiny starDruchii has a nice shiny star
Re: I need help with a batch file

With vbscript and batch:

vbscript:
Code:
dim i
dim wsh
for i = 0 to 99
Set Wsh = WScript.CreateObject("WScript.Shell")
Wsh.Run "traceit.bat", 1
WScript.Sleep 15000
next
And now the batch, call it "traceit.bat":
Code:
tracert bbc.co.uk >> trace.txt
Place both in same folder. There is a 15sec delay between each tracert t give it time to complete.

---------- Post added at 14:40 ---------- Previous post was at 14:36 ----------

Want to make it silent as well? Just tells you when it's done...:

VBscript:
Code:
dim i
dim wsh
for i = 0 to 99
Set Wsh = WScript.CreateObject("WScript.Shell")
Wsh.Run "traceit.bat", 0
WScript.Sleep 15000
next
msgbox "Completed Tracerts!"
Druchii is offline   Reply With Quote