Shell Command
Launches executable programs from within Visual Studio.
Tools.Shell [/command] [/output] [/dir:folder] path [args]
The /dir /o /c switches must be specified immediately after Tools.Shell. Anything specified after the name of the executable is passed to it as command line arguments.
The predefined alias Shell can be used in place of Tools.Shell.
Caution
|
|---|
|
If the path argument supplies the directory path as well as the file name, you should enclose the entire pathname in literal quotes ("""), as in the following: |
Tools.Shell """C:\Program Files\SomeFile.exe"""
Each set of three double quotes (""") is interpreted by the Shell processor as a single double quote character. Thus, the preceding example actually passes the following path string to the Shell command:
"C:\Program Files\SomeFile.exe"
Caution |
|---|
If you do not enclose the path string in literal quotes ("""), Windows will use only the portion of the string up to the first space. For example, if the path string above were not quoted properly, Windows would look for a file named "Program" located in the C:\ root directory. If a C:\Program.exe executable file were actually available, even one installed by illicit tampering, Windows would attempt to execute that program in place of the desired "c:\Program Files\SomeFile.exe" program. |
Caution