X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Andrew Wall" Newsgroups: comp.os.msdos.djgpp Subject: Re: NT for Autoexec Date: Thu, 2 Sep 2004 22:43:55 +0100 Lines: 34 Message-ID: <2ppigrFneqemU1@uni-berlin.de> References: <20040827165241 DOT 10778 DOT 00003273 AT mb-m25 DOT news DOT cs DOT com> <2pb4idFhqiscU1 AT uni-berlin DOT de> <009401c48cfe$97738a50$84236652 AT rui> <2pc3d2FjgtoqU1 AT uni-berlin DOT de> <413743AB DOT 4F5FEEAD AT yahoo DOT com DOT au> X-Trace: news.uni-berlin.de Yc4bGpcSMIOM1wqtILd7vwKeGKbhLipk8L3o7nT5S0n2wgjKUH X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Jason, **Its all true** XP does indeed process C:\AUTOEXEC.BAT, but the file is only read when the computer boots up. This means that any changes you make only take effect after a reboot. So, what I'm going to do is to do as you have done and remove everything from this file and have only common stuff in autoexec.nt, and make my own shortcuts that setup the environment as required for particular applications. Andrew "Jason Hood" wrote in message news:413743AB DOT 4F5FEEAD AT yahoo DOT com DOT au... | Andrew Wall wrote: | > | > That's very interesting, Rui, but on my system I haven't got an Autoexec.bat | > (Well I have, but that is located at C:\ and I know that isn't used because | > I never see any of the echoes from it), so I created one in | > C:\Windows\System32 with just an echo in it and that never fires off! | > This leaves Autoexec.nt as the only place to put these environment | > variables. | | XP (don't about NT/2K) does indeed process AUTOEXEC.BAT, but *only* | the environment variables (SET commands); everything else is ignored. | This is useful in a dual-boot situation. I have "if 1==1 autow98.bat" | as the first line in AUTOEXEC.BAT. If it's XP, it's ignored and the | XP environment is setup, otherwise it processes the old AUTOEXEC.BAT. | | Jason.