Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Reference
Command Window
 Log Command Window Output Command

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual Studio
Log Command Window Output Command

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

Tools.LogCommandWindowOutput [filename] [/on|/off] [/overwrite]
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.

TipTip:

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.

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

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

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
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker