ShellExecute: Difference between revisions
Jump to navigation
Jump to search
(How to open external apps through code) |
mNo edit summary |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
This | =void [[ISystem]]::'''ShellExecute'''(const char *command, const char *file)= | ||
This gives insight on ShellExecute usage. For example, ShellExecute can launch a website or a word document in the client's default viewer. | |||
<code>vgui\ISystem.h</code> must be included in the appropriate file. | |||
void ISystem::ShellExecute(const char *command, const char *file); | |||
vgui::system()->ShellExecute(...); | |||
<code>command</code> can have one of the following values: | |||
*"open" | |||
*"print" | |||
*"explore" | |||
*"play" | |||
*"properties" | |||
*NULL | |||
Look [http://vbnet.mvps.org/index.html?code/shell/shellexecute.htm here] for more information on each of the commands. | |||
<code>file</code> points to the local file or webpage you want to access. | |||
[[Category:ISystem]] | |||
Latest revision as of 19:37, 28 June 2006
void ISystem::ShellExecute(const char *command, const char *file)
This gives insight on ShellExecute usage. For example, ShellExecute can launch a website or a word document in the client's default viewer.
vgui\ISystem.h
must be included in the appropriate file.
void ISystem::ShellExecute(const char *command, const char *file); vgui::system()->ShellExecute(...);
command
can have one of the following values:
- "open"
- "print"
- "explore"
- "play"
- "properties"
- NULL
Look here for more information on each of the commands.
file
points to the local file or webpage you want to access.