JackSparrow
9 years agoFrequent Contributor
Launching the Desktop Application
Hi All
Am Trying to launch the application by using the below code :
def test(): WinFolder = Sys.OSInfo.WindowsDirectory DbgServices.LaunchTestedApplication(WinFolder +"C:\Users\User1\Desktop\Teachers.lnk") app = Sys.Process("Teachers").Exists # Checks whether Notepad has started successfully if app: Log.Message("Teachers app has been started successfully.") else: Log.Message("Teachersapp hasn't been started.")
But it is unable to launch the Application and am facing the error Message :
Did I went wrong some where in the code , Even if I changed the code a little like this
def test(): DbgServices.LaunchTestedApplication("C:\Users\User1\Desktop\Teachers.lnk") app = Sys.Process("Teachers").Exists # Checks whether Notepad has started successfully if app: Log.Message("Teachers app has been started successfully.") else: Log.Message("Teachersapp hasn't been started.")
Still the Same error as showed in the image above
Please guide me
tristaanogre ya I tried that code which you referred it was not working and that link is the shortcut link which am trying to access , since the application is in some other virtual network .
HKosova am about to post that I found the way of launching as you mentioned " testedapp " , which I have created & given the total virtual network path in it and I used .Run which launched the application :D