Can not execute a program

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
tuolden
Newbie
Posts: 1
Joined: Mon Jan 16, 2012 5:58 pm

Can not execute a program

Post by tuolden » Mon Jan 16, 2012 6:10 pm

Hello all,

Trying to execute a program but I get the following error message:


...
On Win64 if trying to run a system proccess try bypassing file RP_WIN64PROCESS or referencing SYS_NATIVE

How can I do this? Allready tried

Let>RP_WIN64PROCESS=1
and
Let>RP_WIN64PROCESS=0

with no success.


Also tried running the program from a windows shell.
This works fine.

help

User avatar
Marcus Tettmar
Site Admin
Posts: 7376
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Jan 16, 2012 6:35 pm

There is no error message in your post.

What program are you trying to run? You don't say? Can you provide your code? Can you tell us the name of the executable and its path?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
Grovkillen
Automation Wizard
Posts: 998
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Post by Grovkillen » Tue Apr 23, 2013 10:56 am

I just got this error as well... this morning I could run the below code with no issues. After I messed around with the script I got this error and I cannot make any Run> command pointing to a .EXE file to run. The RP_WIN64PROCESS will nto fix it either. Any ideas?

Image

EDIT: I've done some testing and complied scripts from before this issue will fire up .EXE files with no problem so it must be something within MS causing it. Darn it, this is not the type of slow down I need... what did I do?

EDIT2: I've tested to run the .EXE file from D:\test.exe and it worked. My K: is a mapped user drive... could this be the problem? The weird part is that I DID run from my K-drive before. Anyway.. I may use this workaround for now. But it would be nice to get it back the way it was before.
Let>ME=%Script%

Running: 15.0.24
version history

User avatar
CyberCitizen
Automation Wizard
Posts: 721
Joined: Sun Jun 20, 2004 7:06 am
Location: Adelaide, South Australia

Post by CyberCitizen » Thu Apr 25, 2013 2:52 am

I think it has something to do with the square brackets [ ].

Not entirely sure (on a mobile device, can't test at present).
FIREFIGHTER

User avatar
Grovkillen
Automation Wizard
Posts: 998
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Post by Grovkillen » Thu Apr 25, 2013 5:11 am

Thanks for the input CyberCitizen but I tried and its not it.
Let>ME=%Script%

Running: 15.0.24
version history

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Thu Apr 25, 2013 3:14 pm

Grovkillen,
Try:
Let>RP_ADMIN=1
Run>K:\[Utveckling]\Voith Utveckling\Macro Scheduler\Script\AppData\test.exe

BTW, you may set msched.exe to "Run this program as an adminstrator" in the Properties window.

Hope it helps.

BladesOfSteel
Newbie
Posts: 3
Joined: Wed Jan 06, 2021 11:12 am

Re: Can not execute a program

Post by BladesOfSteel » Fri Apr 09, 2021 10:44 am

was having the same problem. app would not run from the g drive.

Let>RP_ADMIN=1

worked when i added the above code

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts