From: myknees AT aol DOT com (Myknees) Newsgroups: comp.os.msdos.djgpp Subject: Re: peculiar win 95 behavior Date: 15 Jan 1998 00:43:25 GMT Lines: 40 Message-ID: <19980115004301.TAA07566@ladder02.news.aol.com> NNTP-Posting-Host: ladder02.news.aol.com References: Organization: AOL http://www.aol.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk In article , Eli Zaretskii writes: On Tue, 13 >Jan 1998, Jude Dashiell wrote: >> I have a batch file on my system that I use >>to load all the >> environment variables djgpp needs before I use any of its >>programs. >> Under windows 3.11 for workgroups and msdos 6.22 the file >>worked >> flawlessly. However that same file upon first invocation under >> >>msdos 7.00 and windows 95 (running where windows was never started, >> so only >>dos loaded) returns bad command or file name the first time >> it is run. >>However running that same batch file a second time >> produces no such error >>and all is working after the second running >> of djgpp.bat. >Please post the >batch file. I don't believe anybody will be able to >guess the reason >otherwise. Maybe not, but what fun to try! I bet that one of the lines in the batch file calls a program that is in a path specified in a subsequent line, like this... @echo off ls path=%path%;c:\djgpp\bin ...In that case, you could just make sure that you set the path before trying to use things that are in the path. --Ed (Myknees)