Microsoft Backticks
September 22, 2005 11:49 PM
Subscribe
How do I get the ouput of a windows console program / script into a batch file variable?
Unix user here, trying to translate a shell script into a batch file that will run in a Windows command shell environment. I need to get the output of a program or script into a variable.
In a Unix shell it is easy : var=`program`, but I have not been able to figure out how to do the same in a batch file.
posted by Deepspace to computers & internet (6 comments total)
posted by rolypolyman at 5:45 AM on September 23, 2005