Hi,
I'm trying to run the following but I have a few questions please.
---------------
echo %errorlevel%
set errorlevel=0
echo %errorlevel%
for /f "tokens=3 " %%d in ('sdcli disk list ^| findstr /c:"LUN Path"') do mmm %%d
echo %errorlevel%
if %errorlevel% EQU 0 goto Completed
else goto error
:Completed
echo Cleanup Completed
:error
echo Error please check
:end
------------------
my question is as folllows. Basically, the command "mmm" does not exist and the return of the command gives me: 'mmm' is not recognized as an internal or external command,
operable program or batch file."
this is normal. what is not normal is that the errorcode still comes out as 0, as if the command worked. How do I get around this ?
thanks a million
I'm trying to run the following but I have a few questions please.
---------------
echo %errorlevel%
set errorlevel=0
echo %errorlevel%
for /f "tokens=3 " %%d in ('sdcli disk list ^| findstr /c:"LUN Path"') do mmm %%d
echo %errorlevel%
if %errorlevel% EQU 0 goto Completed
else goto error
:Completed
echo Cleanup Completed
:error
echo Error please check
:end
------------------
my question is as folllows. Basically, the command "mmm" does not exist and the return of the command gives me: 'mmm' is not recognized as an internal or external command,
operable program or batch file."
this is normal. what is not normal is that the errorcode still comes out as 0, as if the command worked. How do I get around this ?
thanks a million
My Computer
- OS
- Windows2008