lundi 20 avril 2015

get the console output and print sametime in a batch file

i want to print console output and get at the sametime. i tried to this with below code to get and printing the result but it's not work. how can i do this?

code:

  set myvar="C:\Program Files (x86)\Inno Setup 5\iscc.exe" asd.iss /SSign_PATH="%cd%\DigitalSign\signtool.exe sign $p"
  for /f "delims=" %%i in ('%myvar%') DO (
  echo %%i
  set OUTPATH=%%i )

result:

'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

Aucun commentaire:

Enregistrer un commentaire