You are hereLongitude Knowledge Book / kb23: DOS shell commands cannot be run directly from Longitude actions

kb23: DOS shell commands cannot be run directly from Longitude actions


By csmith - Posted on 03 November 2009

DOS internal commands are loaded from command.com when the OS is booted, and stored in system memory. These internal commands (e.g. DIR, DATE, ECHO, COPY, DEL, etc.) cannot be executed directly from Longitude actions. To execute DOS internal commands from Longitude actions, either create a batch script or precede the command with cmd /C as in: cmd /C DIR

If you plan to execute batch scripts from a command action, note that on machines that are running Longitude the commands will execute from the Longitude directory. On remote Windows devices it will run from the System32 folder. You can also specify the full path to the script when you enter the command in a Longitude action.