Setting output of a program to a variable in Windows Batch
Read OriginalThis technical article explains how to set the output of a program or command to a variable in Windows Batch scripting, avoiding temporary files. It details the use of the FOR /F loop with tokens and delimiters to parse output, using the example of converting a Cygwin path to a Windows path with cygpath for integration with TortoiseMerge and Mercurial.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser