Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!samsung!caen!uflorida!pine.circa.ufl.edu!hans From: hans@pine.circa.ufl.edu (Hans van Oostrom) Newsgroups: comp.windows.ms Subject: Re: Recursive Windows Message-ID: <26326@uflorida.cis.ufl.EDU> Date: 15 Jan 91 19:17:48 GMT References: <91014.153634YTHPRGDB@MTUS5.BITNET> <11057@jpl-devvax.JPL.NASA.GOV> Sender: news@uflorida.cis.ufl.EDU Reply-To: hans@pine.circa.ufl.edu Distribution: usa Organization: University of Florida - Dept. of Anesthesiology Lines: 37 News-Software: VAX/VMS VNEWS 1.3-4 In article <11057@jpl-devvax.JPL.NASA.GOV>, brad@huey.Jpl.Nasa.GOV (Brad Hines) writes... > >Create the batch file WIN.BAT: >------------------------------ >echo off >if exist c:\win-run.now goto :running >echo " " > c:\win-run.now >c:\windows\win >del c:\win-run.now >goto :exit >:running >echo Windows is already running >:exit > >-- >Brad Hines Instead of the copy and delete commands it is probably better to do the following: echo off if %winrun%="run" goto running set winrun="run" c:\windows\win set winrun="" goto exit :running echo Windows is running.. :exit If the machine is turned off during the dos session, the file created by the first approach will stay, and windows will never run again... Hans van Oostrom PO Box J-254, JHMHC hans@ufpine (BITNET) Gainesville, FL 32601, USA hans@pine.circa.ufl.edu (INTERNET) >>> Hoe ver je ook gaat, overal zie je landgenoten <<<