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 41,685 of 42,547   
   Andrew T. to All   
   SET variable to program output   
   22 Nov 18 00:42:33   
   
   From: and4rew2@turnquist.name.invalid   
      
   Thought I would ask here before diving into writing a program...   
      
   I'm looking for a way to assign the output of a program (or contents   
   of a file would suffice) to an environment variable, similar to bash's   
   backtick substitution.   
      
   The batch file I'm trying to write will be running on a MS-DOS 6.2   
   machine.   
      
   Thanks for any suggestions.   
      
   --Andrew   
      
      
   --   
   Andrew Turnquist, Rochester, New York, USA   
      
   --- 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