From: tlvargo@sbcglobal.netz   
      
   On 12/10/2013 5:50 PM, Todd Vargo wrote:   
   > On 12/10/2013 3:08 PM, pyotr filipivich wrote:   
   >> Harry Potter on Tue, 10 Dec 2013 11:24:02   
   >> -0800 (PST) typed in alt.msdos.batch the following:   
   >>> I am used to WinVista automatically exiting a batch file upon end.   
   >>> However,   
   >>> now I am stuck with an inactive DOS window. So far, I have simply made   
   >>> copies of batch files and removed the line that says pause at the end   
   >>> of the file. Is there any way to exit a batch file immediately or   
   >>> wait for a keypress rather than closing the file manually?   
   >>   
   >> try adding the EXIT command at the end of the file.   
   >>   
   >> I don't recall similar problems when I was running vista, but ...   
   >>   
   >   
   > EXIT does not close the batch window when the batch is launched by   
   > double clicking the batch file. Leaving the batch window blank does.   
   >   
   > On Win9x systems, add CLS as the last line in the batch and that should   
   > take care of it. If not, add ECHO OFF just above it to make sure the   
   > screen will be blank when CLS is issued.   
   >   
      
   Also, to get LFNs from the FOR/IN/DO command, you need to issue a LFNFOR   
   ON command before using the FOR command.   
      
   --   
   Todd Vargo   
   (Post questions to group only. Remove "z" to email personal messages)   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|