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,584 of 68,980    |
|    JJ to dr.j.r.stockton@gmail.com    |
|    Re: New Batch command desired    |
|    18 Jun 20 18:37:01    |
   
   From: jj4public@vfemail.net   
      
   On Sun, 14 Jun 2020 07:29:14 -0700 (PDT), dr.j.r.stockton@gmail.com wrote:   
   > I want an additional Batch command, which could be called EXEC.   
   > It would receive Batch language as Standard Input, and execute   
   > it; those who control the language should be able to add the   
   > command quite easily.   
   >   
   > It would mean that chunks of Batch code, in separate files,   
   > could be virtually incorporated into multiple Batch files.   
   >   
   > It would mean that, in an unpublished update to recent   
   > thread 'Remove all but digits' here,   
   >   
   > @call CSCRIPT //nologo REGLARXP.JS %* > %temp%\$RHUBARB.BAT &   
   %temp%\$RHUBARB.BAT & del %temp%\$RHUBARB.BAT   
   >   
   > could be simplified to   
   >   
   > @call CSCRIPT //nologo REGLARXP.JS %* | EXEC   
   >   
   > which would eliminate the need to find an unused name for   
   > the temporary file.   
   >   
   > Otherwise : Is it possible, in REGLARXP.JS, to write to a named   
   > environment variable *** as if the batch routine which called   
   > REGLARXP.JS had written to the variable instead ***, and if so how?   
      
   Try this.   
      
   @echo off   
   setlocal   
   rem.>"%temp%\$rhubarb.bat"   
   for /f "delims=" %%A in ('more') do (   
    >>"%temp%\$rhubarb.bat" echo %%A   
   )   
   call "%temp%\$rhubarb.bat"   
   del "%temp%\$rhubarb.bat"   
      
   --- 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