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,826 of 42,547   
   Stanley Daniel de Liver to SpaceSST   
   Re: IF > 0   
   09 Dec 13 11:25:18   
   
   From: admin@127.0.0.1   
      
   On Sun, 08 Dec 2013 20:17:27 -0000, SpaceSST  wrote:   
      
   > On Sun, 08 Dec 2013 17:07:59 -0000, "Stanley Daniel de Liver"   
   >  wrote:   
   >   
   >>>>> 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.   
   >>>   
   >> Maybe it could be excused if the errorlevel was being set on exit?   
   >> It is a most remarkable (set of) script(s).   
   >> I can almost follow the logic of abstracting the compression method,   
   >> but a   
   >> lot baffles me.   
   >   
   > The set of Script is to Compress TXT Files  use in a News/usenet server   
   > Text   
   > files are BATCH NEWS files   
   >   
   > the script compress in RAR   
   > many condition are use , if the size of files are smaller of X megs the   
   > script   
   > is  finish if not just comress in rar  in a Single files   
   >   
   > EXIT , when using Script the Exit permet to close the Script   
   > otherwise the Script (DOS WINDOWS) stay open !   
   >   
   Well, yes. Todd? already told me that. But why open them in the first   
   place, why not simply "call" your subroutines?   
      
   --   
   It's a money /life balance.   
      
   --- 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