home bbs files messages ]

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

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

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

   Message 67,887 of 68,980   
   Zaidy036 to All   
   Call Subroutine from another Subroutine   
   29 Jun 22 14:27:49   
   
   From: Eric@Bloch.com   
      
   Is it possible to call a Subroutine from inside another Subroutine?   
      
   Example:   
   :: Main batch   
   CALL :_One   
   some commands   
   CALL :_TWO   
   some commands   
   EXIT or CMD /K   
      
   :_One   
   some commands   
   GOTO :EOF   
      
   :_Two   
   some commands   
   CALL :_One    <------ Will not work so how can this be done?   
   GOTO :EOF   
      
   --- 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