03.28 Understanding Commands: Logging Commands
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>. ...