Visual Studio Tricks


Visual Studio (2005,2008,2010) Tips and Tricks.


#89 Run external executables from the VS command line

The command Tools.Shell will run an external executable out of process from VS.  To run, it is basically

Shell <executable>

But of course, we got optional arguments...

Shell [/commandwindow] [/dir:folder] [/outputwindow] <executable> [/args]

/commandwindow (or /c) - to display the executable's output in the command window

/outputwindow (or /o) - to display the executable's output in the output window

/dir:folder - specifics the working directory

For example,

Shell /o /c xcopy.exe c:\users\saraf\documents\cmdwinlog.txt c:\users\saraf\pictures

will display the xcopy output in the output window.

output redirected to the output window

Click Screenshot To Play Video

#89 Run external executables from the VS command line

Runtime: $post.Custom("MovieRuntime") - Resolution: 900 by 580 - File Size: $post.Custom("MovieFileSize")

Direct Download: If the video does not work for you,
Click Here to download it.
Kick this Trick on DotNetKicks.com

0 comment(s) so far

Post your comment

Thanks for your comments


Be nice ;)

  • Comment

RSS Feeds

All Technology Posts

Scott Cate Main Blog Feed


Visual Studio Tricks Only Feed

@ScottCate on Twitter

Twitter @ScottCate

  • Today is a good day!
  • @blaken i already like @codesmithtools :)
  • @pacitpros is hosting a 2 day IT Pro Conference in San Francisco March 22-23rd, 2012 Tech Days http://t.co/2igpJikF
  • Can you help me get to a quick 25 likes for #Mykb on Facebook? http://t.co/0WSh2GdZ
  • Meeting Planner Meltdown via/ @EventDay evn.tc/xpXHnP #Engage365 #EventProfs