This is an update for an old question of mine, because I wasn't so clear in it.
Honestly I didn't even have the Win_CLI experience to ask the right question. So I'm sorry, and I wish this time is better.
Like I said in my question, I need to use a command output as an argument of another command.
For Example:-
CLITool -Switch (Value_OF_a_Command_OutPut)
I think what I need here is the Set command:-
Set Value=
Command
CLITool -Switch %Value%
But, the problem is that the output value will be printed with a Line_Break!
OutPut_Value
CLITool -Switch (Nothing!)
and because of this, the command won't be executed correctly.
So.. my question now, is how to fix that Set Command problem,
and If possible, how to do the same thing in another technique?
BTW..As most of Linux users know, it's possible to use a command output in the same commandline of the other command as follow:
CLITool -Switch $(Command)
I wish if there is something similar in windows CLI.
Please tell me if it's better to post my actual command.
Thanks Guys,
Appreciate Your Help :)