Skip to content

Latest commit

 

History

History
74 lines (53 loc) · 2.18 KB

log-command-window-output-command.md

File metadata and controls

74 lines (53 loc) · 2.18 KB
title description ms.date ms.topic f1_keywords helpviewer_keywords author ms.author manager ms.subservice
Log Command Window Output Command
Learn about the Log Command Window Output command and how it copies all input and output from the Command window into a file.
11/04/2016
reference
tools.logcommandwindowoutput
log Command window output command
View.LogCommandWindowOutput command
Mikejo5000
mikejo
mijacobs
general-ide

Log Command window output command

Copies all input and output from the Command window into a file.

Syntax

Tools.LogCommandWindowOutput [filename] [/on|/off] [/overwrite]

Arguments

filename
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.

Tip

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.

Switches

/on
Optional. Starts the log for the Command window in the specified file and appends the file with the new information.

/off
Optional. Stops the log for the Command window.

/overwrite
Optional. If the file specified in the filename argument matches an existing file, the file is overwritten.

Remarks

If no file is specified, the file cmdline.log is created by default. By default, the alias for this command is Log.

Examples

This example creates a new log file, cmdlog, and starts the command log.

>Tools.LogCommandWindowOutput cmdlog

This example stops logging commands.

>Tools.LogCommandWindowOutput /off

This example resumes the logging of commands in the previously used log file.

>Tools.LogCommandWindowOutput /on

See also