set foo `bar`
can be accomplished as
bar>bar.tmp set /p foo=<bar.tmp
If you're spoiled by Unix's notion of
true pipes, note that the following:
bar | set /p foo=
does not work.
12388 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
set foo `bar`
bar>bar.tmp set /p foo=<bar.tmp
bar | set /p foo=
You need to create an account or log in to post comments to this site.