Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Proper Syntax for Running Script from Batch File

Status
Not open for further replies.

cghoga

Programmer
Jun 26, 2003
614
US
I am trying to execute a script via a batch file that runs on the scheduler.
This process has been somewhat inconsistent.
Below is the code I am using.

@Echo off
Echo Please wait...
"C:\Program Files\Symantec\Procomm Plus\PROGRAMS\pw5.exe" "TERMINAL" "X:\Myscript.wax"
Exit

Am I calling the script correctly? Is there a beter way to do this?

Thanks for your help.
 
under win98SE task scheduler i'm using:
echo off
cls
pw5.exe / scriptname.wax
exit

to run multiple scripts, i'm using: (still a batch file)
echo off
cls
pw5.exe / multiple.wax
exit

inside your multiple.wax is something like this:
run "pw5.exe / script1.wax"
pause 1
run "pw5.exe / script2.wax"
pause 1
run "pw5.exe / script3.wax"

if you have a faster PC, maybe you can have as many as 15 scripts, you can then remove the "pauses". I tried multiple(13scripts) on a PIII900Mhz with 64MB RAM but the response is not consistent especially if there are other apps running.
 
I forgot, you have to include procomm plus in the search path...i.e PATH command. something like PATH=c:\program files\procomm plus\programs

hope that helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top