Problem with batch files
I'm trying to get xdosemu to run a batch file to start an application from my KDE desktop. The batch file is pretty simple, and I have been able to use it in the past.
The batch file is located in /usr/lib/freedos and it's being called with "xdosemu -E pcplus.bat"
@echo off
D:
cd \pcplus
pcplus.exe
exit
All of the commands work at the command prompt, the batch file runs OK from the command prompt and the application runs fine, but I cannot get xdosemu to execute "cd \pcplus" in the batch file. Can anyone tell me how to get this to work?
Thanks,
Rick Knight
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 28 lines · Claudia Neumann
Hi Rick!
Am Freitag, 9. September 2005 05:05 schrieben Sie:
Quoted 4 lines
I'm trying to get xdosemu to run a batch file to start an application from my KDE desktop. The batch file is pretty simple, and I have been able to use it in the past.
Quoted 10 lines
The batch file is located in
/usr/lib/freedosand it's being called with "xdosemu -E pcplus.bat"@echo off
D:
cd \pcplus
pcplus.exe
exitTry
@echo off
D:
cd \pcplus
call pcplus.exe
exitemu
Quoted 5 lines
cu
Claudia
Claudia,
Thanks for the reply.
Adding "call" to the batch file doesn't make any difference. I forgot to mention my previous post, I do get an error message,
"ERROR: could not change directory"
and then the dosemu command line. The problem seems to be that the change directory command "cd" doesn't work in a batch file when called by xdosemu with -E. Does this make sense?
Thanks again,
Rick Knight
Quoted 43 lines · Richard W. Knight
Quoted 28 lines · Claudia Neumann
Hi Rick!
Am Freitag, 9. September 2005 05:05 schrieben Sie:
Quoted 4 lines
I'm trying to get xdosemu to run a batch file to start an application from my KDE desktop. The batch file is pretty simple, and I have been able to use it in the past.
Quoted 9 lines
The batch file is located in
/usr/lib/freedosand it's being called with "xdosemu -E pcplus.bat"@echo off
D:
cd \pcplus
pcplus.exe
exitTry
@echo off
D:
cd \pcplus
call pcplus.exe
exitemuQuoted 5 lines
cu
Claudia
Claudia,
Thanks for the reply.
Adding "call" to the batch file doesn't make any difference. I forgot to mention my previous post, I do get an error message,
"ERROR: could not change directory"
Quoted 8 lines
and then the dosemu command line. The problem seems to be that the change directory command "cd" doesn't work in a batch file when called by xdosemu with -E. Does this make sense?
Thanks again,
Rick Knight
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Solved the problem,
Using 2 batch files. The first batch file, "startpcp.bat", just calls the second batch file,
@echo off
call pcplus.bat
exitemu
All of the commands to start pcplus are in the second batch file, "pcplus.bat"
@echo off
d:
cd \pcplus
pcplus.exe
In this way, cd works correctly. Is this normal?
Thanks again,
Rick Knight