Posts: 276
Threads: 34
Joined: Dec 2016
The following code, written to the QM, run-time error, prompt: can not find the file, but the manual open the program is normal, try a variety of methods, can not be successful! Some programs have similar problems, do not know what causes! Hope to be able to solve!
Macro
Macro1
run "$program files$\Oracle\VirtualBox\VirtualBox.exe"
Posts: 12,092
Threads: 142
Joined: Dec 2002
run "C:\program files\Oracle\VirtualBox\VirtualBox.exe"
$program files$ = C:\Program files (x86)
Posts: 276
Threads: 34
Joined: Dec 2016
Still unable to run the program, I try to manually change the following code, to run successfully, it feels a bit strange, thank you for your reminding, the code below is my right click on the program icon, copied from the target location in the code!
Macro
Macro1
run "C:\Program Files\Oracle\VirtualBox\VirtualBox.exe"
Posts: 12,092
Threads: 142
Joined: Dec 2002
What error is now?
This should show 1 if file exists:
out FileExists("C:\Program Files\Oracle\VirtualBox\VirtualBox.exe")
Posts: 276
Threads: 34
Joined: Dec 2016
run "C:\program files\Oracle\VirtualBox\VirtualBox.exe"
$program files$ = C:\Program files (x86)
-----------------------------------------------------------------------
Only the first line of the above code on the OK, and tried a few procedures, we have to manually set it, in order to run the program, drag the program icon directly to the code editing area is not successful!