DOSR
Top  Previous  Next


Executes DOS command or other program on a remote NT / 2000 / XP / 2003 machine

Like with all other SetupBatcher commands, if an errors occurs during a DOSR command the script will stop and the command output is displayed in the log window. Read about error handling here.

Tip: pipe command output to a file and use the FileValue function to read it.

Requirements
Remote admin service

Category
General

Script section
All

DOSR MachineName, Timeout, Command

MachineName
Name of remote machine on which to carry out the command  

Timeout
Seconds, 0-60000  

Any command that does not finish within the timeout period will stop and return an error.  
 
Set timeout to 0 to run and ignore feedback -  
·The error level of the called executable is not checked and the script will thus not stop on command errors. (SetupBatcher will still always stop on communication errors.)  
·No errors from the called command will be displayed in the log window.  

Command
Command to execute / program to run + command line parameters. Remember to specify full path for executables unknown to the system.  
 
List of useful command line / resource kit tools  

Examples

DOSR \\edu12,5,md c:\users\%col1%

DOSR %servername%,5,md c:\users\%col1%