* Re: Problem with batch files
@ 2005-09-11 13:02 Stas Sergeev
0 siblings, 0 replies; 4+ messages in thread
From: Stas Sergeev @ 2005-09-11 13:02 UTC (permalink / raw)
To: linux-msdos
Hello.
Richard W. Knight wrote:
> "ERROR: could not change directory"
This bug might have been fixed in 1.3.2
already:
https://sourceforge.net/tracker/index.php?func=detail&aid=1152829&group_id=49784&atid=457447
Please don't forget to specify your dosemu
version in your further messages.
^ permalink raw reply [flat|nested] 4+ messages in thread* Problem with batch files
@ 2005-09-09 3:05 Rick Knight
[not found] ` <200509091517.53206.dr.claudia.neumann@gmx.de>
0 siblings, 1 reply; 4+ messages in thread
From: Rick Knight @ 2005-09-09 3:05 UTC (permalink / raw)
To: Linux-msdos
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
^ permalink raw reply [flat|nested] 4+ messages in thread[parent not found: <200509091517.53206.dr.claudia.neumann@gmx.de>]
* Re: Problem with batch files [not found] ` <200509091517.53206.dr.claudia.neumann@gmx.de> @ 2005-09-09 15:47 ` Richard W. Knight 2005-09-09 16:19 ` Richard W. Knight 0 siblings, 1 reply; 4+ messages in thread From: Richard W. Knight @ 2005-09-09 15:47 UTC (permalink / raw) To: Claudia Neumann, linux-msdos Claudia Neumann wrote: >Hi Rick! > >Am Freitag, 9. September 2005 05:05 schrieben Sie: > > >>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 >> >> > >Try > >@echo off >D: >cd \pcplus >call pcplus.exe >exitemu > >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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Problem with batch files 2005-09-09 15:47 ` Richard W. Knight @ 2005-09-09 16:19 ` Richard W. Knight 0 siblings, 0 replies; 4+ messages in thread From: Richard W. Knight @ 2005-09-09 16:19 UTC (permalink / raw) To: Claudia Neumann; +Cc: linux-msdos Richard W. Knight wrote: > Claudia Neumann wrote: > >> Hi Rick! >> >> Am Freitag, 9. September 2005 05:05 schrieben Sie: >> >> >>> 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 >>> >> >> >> Try >> >> @echo off >> D: >> cd \pcplus >> call pcplus.exe >> exitemu >> >> 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 > - > To unsubscribe from this list: send the line "unsubscribe linux-msdos" in > the body of a message to majordomo@vger.kernel.org > 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-09-11 13:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-11 13:02 Problem with batch files Stas Sergeev
-- strict thread matches above, loose matches on Subject: below --
2005-09-09 3:05 Rick Knight
[not found] ` <200509091517.53206.dr.claudia.neumann@gmx.de>
2005-09-09 15:47 ` Richard W. Knight
2005-09-09 16:19 ` Richard W. Knight
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox