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,791 of 42,547   
   Todd Vargo to SpaceSST   
   Re: IF > 0   
   16 Nov 13 13:25:03   
   
   From: tlvargo@sbcglobal.netz   
      
   On 11/16/2013 1:25 AM, SpaceSST wrote:   
   > On Fri, 15 Nov 2013 17:03:50 -0500, Todd Vargo    
   wrote:   
   >   
   >> On 11/15/2013 11:35 AM, SpaceSST wrote:   
   >>> On Fri, 15 Nov 2013 12:48:38 -0000, "Stanley Daniel de Liver"   
      
   >>> wrote:   
   >>>   
   >>>> On Thu, 14 Nov 2013 12:00:41 -0000, SpaceSST    
   wrote:   
   >>   
   >>>>>   
   >>>> [most of a well-over complicated batch snipped]   
   >>>>>   
   >>>>> exit   
   >>>>>   
   >>>> why exit?   
   >>>   
   >>> It's a Sub Call from another BATCH FILES   
   >>   
   >> Unfortunately, EXIT without parameters causes not only the Sub to end   
   >> but the entire CMD session is closed also. Your explanation is a bit   
   >> incomplete.   
   >   
   > 1- First i run > start /min C:\dnews\UTL\gzTs.bat rar yes   
   > 2-it call this   
   > cls   
   > if exist c:\lock.sem exit   
   > start /MIN /WAIT C:\dnews\UTL\gzT.bat %1 %2   
   > start /MIN /WAIT C:\dnews\UTL\ugz.bat   
   > start /MIN /WAIT C:\dnews\UTL\hours.bat   
   > start /MIN /WAIT C:\dnews\UTL\top1000s.bat   
   > rem start /MIN /WAIT C:\dnews\UTL\tests.bat   
   > start /MIN /WAIT C:\dnews\UTL\Usenet-Send.bat D:\TXT-BIN\ToSend   
   > start /MIN /WAIT C:\dnews\UTL\del-age.bat   
   > sync   
   > nircmd.exe emptybin   
   > sync   
   > exit   
   >   
   > 3-Was the Big Batch Script  i post earlier   
   > 4- it call ugz.bat   
   > 5-call hours   
   > 6-top1000   
   > 7-tests   
   > 8-usenet send   
   > 9-del-age   
   > ................   
   >   
   > Work fine for me for Years....   
      
   My point was that someone asked "why exit" but your response was   
   incomplete. With this additional information, it is clear, its being   
   used to force those separate CMD sessions closed to allow the main batch   
   to proceed with the next task.   
      
   I'll leave the semantics of CALLing a Sub and STARTing a Sub for another   
   discussion.   
      
   --   
   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