From here http://weblogs.asp.net/lorenh/archive/2006/03/24/silly-batch-file-tricks-redirecting-stdout-into-an-evironment-variable-and-dp0.aspx
FOR /F “tokens=*” %%i in (‘%~dp0sometool.exe’) do SET TOOLOUTPUT=%%i
Filed under: Applied IT
[...] the original post: doc bat file redirecting output to a variable Share and [...]
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
Connecting to %s
Notify me of follow-up comments via email.
Get every new post delivered to your Inbox.
Join 201 other followers
[...] the original post: doc bat file redirecting output to a variable Share and [...]