Page 1 of 1

Manual run works but not through using a script

Posted: 16 Mar 2024, 22:49
by deets

Code: Select all

::removebloat::
RunWait, adb shell pm uninstall --user 0 com.android.browser
MsgBox, Applications uninstalled successfully!
return
I tried running as admin and without, and it just shows this error:

Code: Select all

Error: Failed attempt to launch program or document:
Action: <adb shell pm uninstall --user 0 com.android.browser>
Params: < >
Specifically: The system cannot find the file specified.
any idea why?

Re: Manual run works but not through using a script

Posted: 17 Mar 2024, 02:19
by Rohwedder
Hallo,
#1 If the program/document name or a parameter contains spaces, it is safest to enclose it in double quotes.
#2 see: https://www.autohotkey.com/docs/v1/lib/Run.htm#Interpretation_of_Target

Re: Manual run works but not through using a script

Posted: 28 Mar 2024, 19:14
by deets
Rohwedder wrote:
17 Mar 2024, 02:19
Hallo,
#1 If the program/document name or a parameter contains spaces, it is safest to enclose it in double quotes.
#2 see: https://www.autohotkey.com/docs/v1/lib/Run.htm#Interpretation_of_Target
the interesting part is why does the exact same code not run properly on 1 PC but does so without errors on another PC?