From: "Richard W. Knight" <rick_knight@rlknight.com>
To: Claudia Neumann <dr.claudia.neumann@gmx.de>
Cc: linux-msdos@vger.kernel.org
Subject: Re: Problem with batch files
Date: Fri, 09 Sep 2005 09:19:58 -0700 [thread overview]
Message-ID: <4321B62E.3060004@rlknight.com> (raw)
In-Reply-To: <4321AE82.8080709@rlknight.com>
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
next prev parent reply other threads:[~2005-09-09 16:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-09 3:05 Problem with batch files 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 message]
-- strict thread matches above, loose matches on Subject: below --
2005-09-11 13:02 Stas Sergeev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4321B62E.3060004@rlknight.com \
--to=rick_knight@rlknight.com \
--cc=dr.claudia.neumann@gmx.de \
--cc=linux-msdos@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox