Support > Forums > OpenBots Studio > Error The system cannot find the file specified
When I try to try to launch certain apps, I get the error message -
Source: C:\Users\******\OneDrive - ****** Consultants Limited\Documents\OpenBotsStudio\My Scripts\Test01\Main.obscript,
Line: 3 Start Process [Process 'C:\Users\******\scoop\apps\dont-sleep\8.08\DontSleep_x64.exe' - Wait For Exit 'No'],
Exception Type: Win32Exception,
Exception Message: The system cannot find the file specified
I have tried running the studio in admin mode but it still gives the same error. I am able to run the application directly from the run prompt.
Any ideas?
This forum has 317 topics, 687 replies, and was last updated 4 months ago by Nataly Alvarado...
Hi Harshita,
make sure the extension is an accepted PowerShell script (.ps1). The PowerShell file should have the code to call the .exe you are trying to open.
Hi AKESH KOSHY, Thanks for your reply. I am using Run PowerShell Script Command its shown this error. How to add '.ps1' extension,
Line 2: Run PowerShell Script [PowerShell Script Path '@"C:**.exe"'] - [Source: 'C:\Users*\Login.obscript', Type: 'Exception', Message: 'Processing -File 'C:\****.exe' failed because the file does not have a '.ps1' extension. Specify a valid Windows PowerShell script file name, and then try again.
Hi Harshita,
You can try opening the application using a Powershell script. If that works as expected, you can then invoke the Powershell script from the OpenBots commands (Start Process or Run PowerShell Script commands)
Hope this helps!
Hi AKESH KOSHY, I am using Start Command and I removed (.exe). But the application was not run, its not responding anything. Its getting for this error,
Line 1: Start Process [Process '@"C:*"' - Window Style 'Normal' - Wait For Load 'No' - Wait For Exit 'No'] - [Source: 'C:\Users*', Type: 'Win32Exception', Message: 'The system cannot find the file specified']
Hello @ Mark
Try to give the file location like this" C:\Users******\scoop\apps\dont-sleep\8.08\DontSleep_x64 " , Omit the ".exe" . I had the same issue and this worked for me .hope this solves your issue
Hello Mark,
I would love to help you bypass this error. You mention that the issue only occurs with certain applications. Please confirm that you are using the "Start Process" command and that you are able to open simple applications like Notepad. Also, to expedite the process, it would be very helpful for us to try one of the applications you are attempting to open and recreate the error. Please, let me know if the applications are open to the public or if there is a way to obtain access.
You are not authorized to reply, please click here to login and add your reply to this topic.