into a variable, using a direct command like in Linux (e.g. Bash)? Like result=$(command)
It can
How?! Many posts in stack exchange contain answers in which a temp file is being used for doing the job! |:
Alias and set alias, >> and set >> push and pop
Store last line of output (process all lines): for /F "tokens=* delims=" %%a in ('your command') do ( set result=%%a ) Store first line of output: your command | set /p result=
Обсуждают сегодня