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 68,782 of 68,980   
   Tom Del Rosso to All   
   Simulating a key input to an external co   
   12 May 24 18:20:37   
   
   From: fizzbintuesday@that-google-mail-domain.com   
      
   Is there a way to give an *external* command "any key" input without   
   using a macro utility?   
      
   Years ago there was some mention of using START /B but I can't find an   
   example. The experiment below is just confusing with the sequence of   
   output and input all mixed up, but both PAUSE commands still need input.   
      
   And what's needed is to give input to an external command. Piping echo   
   doesn't always work.   
      
      
   @echo off   
   echo TOP OF FILE   
      
   if "%~1"=="JUMP" goto :%2   
      
   echo FIRST RUN   
      
   START "SUBC" /B "%~0" JUMP SUBC   
      
   echo 1   
   pause   
   echo 2   
   exit   
      
   :SUBC   
   echo 3   
   pause   
   echo 4   
   exit   
      
   --- 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