Page 1 of 1

Cant Save The Output of Command to variable

Posted: 20 Oct 2009 09:51
by roeer
any one can help me please


Code: Select all

SET VAR001=cscript  C:\CheckVersion\VersionInfo.vbs C:\Program~1\FMR\TaskBarService\TaskBarService.exe

if (%VAR001%)=="1.4.0.2" BLA BLA BLA ITS OK

pause


Thanks Alot
Roee Rahamim

Posted: 20 Oct 2009 18:15
by avery_larry
Something like this:

**untested**

Code: Select all

for /f %%a in ('C:\CheckVersion\VersionInfo.vbs C:\Program~1\FMR\TaskBarService\TaskBarService.exe') do set "VAR001=%%a"

if "%VAR001%"=="1.4.0.2" echo OK

Posted: 21 Oct 2009 01:24
by roeer
Wow
Thanks alot its works....

:)