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
Top of the Week
1
2
Better react-hook-form Smart Form Components
Maarten Hus
•
2 votes
3
AGI, ASI, A*I – Do we have all we need to get there?
John D. Cook
•
1 votes
4
Quoting Thariq Shihipar
Simon Willison
•
1 votes
5
Dew Drop – January 15, 2026 (#4583)
Alvin Ashcraft
•
1 votes
6
Using Browser Apis In React Practical Guide
Jivbcoop
•
1 votes