Gseos.StartApplication
Previous  Top  Next

StartApplication(strPath, [ctArgs=[]])

Launches an application. This function does not wait for the application to complete but returns immediately. It returns the process identifier. The environment variable PATH is not referenced to resolve the application name strPath. You can pass arguments to the application in the ctArgs tuple.

ParameterDescription     
strPathThe application path. The PATH environment variable is not referenced to resolve the path.  
ctArgsTuple with application arguments, optional, the default is no arguments.  

Returns
wProcessIDThe process identifier.  

If an error occurs, like the file can not be found, an exception will be raised.

Example
Open notepad:

import Gseos
Gseos.StartApplication("c:\\windows\\notepad.exe")