Windows Directory Listing Using a Batch File - Default Directory
This example demonstrates using UCMD Manager via the UDM Manager exec command to provide a directory listing using a batch file.
The output from the batch file is redirected to the file stdout.txt. If this is not done, the output from the listing is output via UDM along with the Transaction Log. UDM creates the stdout.txt file in UDM's default directory, Files\Universal\UCmdHome\joe.
Note
The last directory in the path corresponds to the user ID under which the command is executed. No open state is used, and the remote host on the exec command is specified using the IP address.
The winxmp.bat batch file simply does a dir command against the directory in which the batch file resides.
Output sent to stdout.txt.
The transaction log is shown in this first example for those not used to seeing output from UDM.
UDM exec Command Parameters
The exec command parameters used in this example are:
Parameter | Description |
---|---|
cmd | Command to execute on the remote system using command type cmd (command). |
user | Remote user ID with which to authenticate and execute the command on the remote system. |
pwd | Password with which to authenticate the user ID on the remote system. |