I want to use result of one command in the next command line. Is there any way to do it? preferably in one line. For e.g.
1st: where svn;
2nd: explorer {{result_from_first_cmd}}.
I tried explorer where svn
. Evidently didn't work.
I want to use result of one command in the next command line. Is there any way to do it? preferably in one line. For e.g.
1st: where svn;
2nd: explorer {{result_from_first_cmd}}.
I tried explorer where svn
. Evidently didn't work.
Use a FOR
loop. Yeah, it's crazy. It's Windows.
FOR /F "delims=" %%A IN ('where svn') DO (explorer "%%~A")
Which operating system are you using? Usually you can pipe outputs of one comman line tool to the next one using the | (pipe) operator.