Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to run program, prompting file not found
#1
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
Code:
Copy      Help
run "$program files$\Oracle\VirtualBox\VirtualBox.exe"
#2
run "C:\program files\Oracle\VirtualBox\VirtualBox.exe"

$program files$ = C:\Program files (x86)
#3
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
Code:
Copy      Help
run "C:\Program Files\Oracle\VirtualBox\VirtualBox.exe"
#4
What error is now?

This should show 1 if file exists:
out FileExists("C:\Program Files\Oracle\VirtualBox\VirtualBox.exe")
#5
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!


Forum Jump:


Users browsing this thread: 1 Guest(s)