G
Guest
Guest
I am trying to create a mapkey that opens an external application. In the Record Mapkey > OS Script dialog box, I have the command:
D:\proefiles\toolbox\purgedrive.bat
This runs a batch file that opens a program called purgedrive.exe. Here are the contents of the batch file:
@echo off
REM *** Start Purge Drive
set D:\Program Files\PurgeDrive
start purgedrive.exe
exit
When I run the mapkey, I get the following error in the DOS window that pops up:
Environment variable D:\Program not defined
I've played around with the batch file, such as using D:\Progra~1\PurgeDrive and adding to my PATH environment variable the path to the directory, but to no avail.
Any suggestions on how this might be solved?
Thanks!
D:\proefiles\toolbox\purgedrive.bat
This runs a batch file that opens a program called purgedrive.exe. Here are the contents of the batch file:
@echo off
REM *** Start Purge Drive
set D:\Program Files\PurgeDrive
start purgedrive.exe
exit
When I run the mapkey, I get the following error in the DOS window that pops up:
Environment variable D:\Program not defined
I've played around with the batch file, such as using D:\Progra~1\PurgeDrive and adding to my PATH environment variable the path to the directory, but to no avail.
Any suggestions on how this might be solved?
Thanks!