February 3, 2010 mellerbeck doc bat file redirecting output to a variable 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 Share this: Click to email a link to a friend (Opens in new window) Email Click to share on Facebook (Opens in new window) Facebook Click to share on LinkedIn (Opens in new window) LinkedIn Click to share on X (Opens in new window) X Like Loading... Related
[…] the original post: doc bat file redirecting output to a variable Share and […]