Batch file execution on win2003

pts.
Tags:
Access
DataCenter
Desktops
Management
Microsoft Office
Microsoft Windows
Networking
OS
Patch management
Security
Servers
SQL Server
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • StaceyHopkins
    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 pointsBadges:
    report
  • Sudh2k
    Thanks for the answers. They were helpful. Special thanks to Stacey.
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following