Windows 7에서는 작동하지만 2k8에서는 예외가 발생하지 않는 스크립트가 있습니다.박쥐 스크립트는 Windows 7에서 작동하지만 windos에서는 작동하지 않습니다. 2k8
@echo off
REM #Testing FIND in IPCONFIG
SET VIPTHATWORKS="11.11.11.11"
SET VIPTHATFAILS="192.168.122.17"
ipconfig /all | find %VIPTHATWORKS%
if ERRORLEVEL = 1 goto VIP_NOT_FOUND
REM #We are here becuase the find returned a result.
REM #It is safe to execute the rest of the application.
REM #EXECUTES THE SCRIPT HERE
echo "testing works" >> testing.txt
:VIP_NOT_FOUND
REM #This part of the script is where you would handle any
REM #error logging or other admin related
echo "Could not find a VIP. - Exiting"
echo "end of script reached."
이이
에서 변경하는 것입니다. 그렇지 않으면 스크립트가 파일에 액세스 할 수있는 곳을 볼 수 없습니다. –