Log Command Window Output Command
Copies all input and output from the Command window into a file.
Optional. The name of the log file. By default, the file is created in the user's profile folder. If the file name already exists, the log is appended to the end of the existing file. If no file is specified, the last file specified is used. If no previous file exists, a default log file is created, called cmdline.log.
To change the location where the log file is saved, enter the full path of the file, surrounded by quotation marks if the path contains any spaces.
This example creates a new log file, cmdlog, and starts the command log.
This example stops logging commands.
This example resumes the logging of commands in the previously used log file.