From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Richard W. Knight" Subject: Re: Problem with batch files Date: Fri, 09 Sep 2005 09:19:58 -0700 Message-ID: <4321B62E.3060004@rlknight.com> References: <4320FBF1.50309@rlknight.com> <200509091517.53206.dr.claudia.neumann@gmx.de> <4321AE82.8080709@rlknight.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4321AE82.8080709@rlknight.com> Sender: linux-msdos-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Claudia Neumann Cc: linux-msdos@vger.kernel.org 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