0 pts.
 Batch file execution on win2003
Hi, Is AT command valid for windows 2003 batch files? Is there any delimitor to be used after each statement in batch files?(when run on Windows 2003 platform) Best regards

Software/Hardware used:
ASKED: May 9, 2006  12:18 AM
UPDATED: May 10, 2006  12:00 AM

Answer Wiki:
AT Schedules commands and programs to run on a computer at a specified time and date. You can use AT only when the Schedule service is running. Used without parameters, AT lists scheduled commands. Syntax at [ComputerName] [{[ID] [/delete]|/delete [/yes]}] at [[ComputerName] hours:minutes [/interactive] [{/every:date[,...]|/next:date[,...]}] command] ============================== Using multiple commands and conditional processing symbols You can run multiple commands from a single command line or script using conditional processing symbols. When you run multiple commands with conditional processing symbols, the commands to the right of the conditional processing symbol act based upon the results of the command to the left of the conditional processing symbol. For example, you might want to run a command only if the previous command fails. Or, you might want to run a command only if the previous command is successful. You can use the special characters listed in the following table to pass multiple commands. Character Syntax Definition & [...] command1 & command2 Use to separate multiple commands on one command line. Cmd.exe runs the first command, and then the second command. && [...] command1 && command2 Use to run the command following && only if the command preceding the symbol is successful. Cmd.exe runs the first command, and then runs the second command only if the first command completed successfully. || [...] command1 || command2 Use to run the command following || only if the command preceding || fails. Cmd.exe runs the first command, and then runs the second command only if the first command did not complete successfully (receives an error code greater than zero). ( ) [...] (command1 & command2) Use to group or nest multiple commands. ; or , command1 parameter1;parameter2 Use to separate command parameters.
Last Wiki Answer Submitted:  May 9, 2006  8:51 am  by  Ronn   0 pts.
All Answer Wiki Contributors:  Ronn   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

The AT command is still valid as long as the Schedule service is running. As for delimiters, the command interpreter, cmd.exe, is still the same as previous versions. No delimiters are needed for .bat or .cmd files. Other script files may require delimiters depending on the interpreter they use. Hope this helps.

 0 pts.

 

Thanks for the answers. They were helpful. Special thanks to Stacey.

 0 pts.