Date: Sat, 30 Jun 2001 09:14:04 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: Jonathon Merz Message-Id: <2593-Sat30Jun2001091404+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: <3B3CD4FB.2050300@earthlink.net> (message from Jonathon Merz on Fri, 29 Jun 2001 14:20:27 -0500) Subject: Re: Incorrect resolution of COMSPEC environment variable on WinNT References: <3B3CADA3 DOT 4000506 AT earthlink DOT net> <6923-Fri29Jun2001215309+0300-eliz AT is DOT elta DOT co DOT il> <3B3CD4FB DOT 2050300 AT earthlink DOT net> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Date: Fri, 29 Jun 2001 14:20:27 -0500 > From: Jonathon Merz > > with most of the compiler platforms Vim builds on, we can make the > line system("start /wait regedit ..."), so that the installer does > not regain control until regedit has finished, then we can delete > the file. That works fine on Win9x, ME, and 2000, where there is a > start.exe executable that does that. On WinNT, though, it turns out > that start is a shell built-in for cmd.exe, but is not in > command.com, thus the trouble. Well, you could use __dosexec_find_on_path to see if cmd.exe is somewhere on the PATH, then invoke cmd.exe explicitly: system ("cmd.exe /c start /wait regedit ...");