J
Joey
I need to create a batch file that will check the version of the host and
then run an executable from the network...
@echo off
psexec @hosts.txt -u domain\user-p xxxx ver | find "5.2" > nul
if %ERRORLEVEL% == 0 goto ver_2003
if %ERRORLEVEL% == 1 goto ver_XP
:ver_2003
echo Windows 2003
\\server2\setup.exe
goto exit
:ver_XP
echo XP
\\server1\setup.exe
goto exit
Does anyone have any recommendation on how to proceed? psexec is reporting
back "ver" is unknown
thanks
then run an executable from the network...
@echo off
psexec @hosts.txt -u domain\user-p xxxx ver | find "5.2" > nul
if %ERRORLEVEL% == 0 goto ver_2003
if %ERRORLEVEL% == 1 goto ver_XP
:ver_2003
echo Windows 2003
\\server2\setup.exe
goto exit
:ver_XP
echo XP
\\server1\setup.exe
goto exit
Does anyone have any recommendation on how to proceed? psexec is reporting
back "ver" is unknown
thanks