Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > Shell FunctionThis standard VB function starts a Windows application and returns its task ID. SyntaxShell(pathname, [windowStyle])
ReturnsThe task ID for the program, a unique number that identifies the running program. UsageShell runs an executable program. Pathname can be the name of any valid BAT, COM, EXE, or PIF file. Arguments and command line switches can be included. If pathname is not a valid executable file name, or if Shell cannot start the program, an error message occurs. If windowStyle is not specified, the default of windowStyle is 1 (normal window with focus). ExampleThis example opens Microsoft Excel upon the click of a button. For other examples, read Right Function and SendKeys Statement. Sub Button1_Click See Also |
Siebel VB Language Reference |