03.28 Understanding Commands: Logging Commands


log; Tools.LogCommandWindowOutput


2005, 2008, 2010



When using commands, sometimes you want to keep a log of the ones you used. This is especially useful when you are experimenting with commands to see what iterations you went through. The syntax for logging is as follows:

log [filename] [/on|/off] [/overwrite]

Or you can use the following:

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


The following sections describe what the preceding arguments do.


It’s highly recommended that you use a path and file name; otherwise, the default file name is cmdline.log and the log file is stored at C:\Users\<user>\AppData\Roaming\Microsoft\VisualStudio\<version>. ...

Get Coding Faster: Getting More Productive with Microsoft® Visual Studio® now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.