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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

writing a script to run multiple scripts at a designated time

Status
Not open for further replies.

tkjcrw

Technical User
Sep 21, 2004
2
US
hi, i am looking to write a procomm script that will run at a designated time in the morning all the available scripts i have. is this possible? any help would be greatly appreciated!
 
You can use the waituntil command to pause script execution until a specified time, then run each individual script using the execute command.


aspect@aspectscripting.com
 
can you be a bit more specific on how i would use the waituntil command?
 
There really isn't much to it, just waituntil followed by the time in the proper format, depending on what format you have Windows set to use. Here is a copy and paste from the help file:

Pauses processing until the specified date and/or time.

string [string] A time string and optional date string, specifying when script processing should continue. The date and time strings must conform to the Short date style and Time style formats specified in the Windows Control Panel's Regional Settings section.

If the date string is not specified, the default is the current date.

timeval A long time value that specifies both time and date.

Example

proc main
string DateStr ; String to contain date.
string TimeStr ; String to contain time.

DateStr = "12/31/99" ; Assign date to date string.
TimeStr = "11:59:59" ; Assign time to time string.
waituntil TimeStr DateStr ; Wait until turn of century.
endproc

Comments

This command will set FAILURE if an invalid date string and/or time string is used as an argument to the command. Active when commands will continue to "fire" during the execution of the waituntil command.

aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top