home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch      Fun with MS-DOS batch files      42,547 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 40,827 of 42,547   
   Todd Vargo to Todd Vargo   
   Re: Auto-close batch file upon exit w/ou   
   10 Dec 13 18:24:46   
   
   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)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca