From e81490b89c55d7b0477da6e72db36e13f2b15f63 Mon Sep 17 00:00:00 2001 From: WindowsAddict Date: Mon, 25 Sep 2023 19:16:19 +0530 Subject: 1.9 --- MAS/Separate-Files-Version/Check-Activation-Status-vbs.cmd | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'MAS/Separate-Files-Version/Check-Activation-Status-vbs.cmd') diff --git a/MAS/Separate-Files-Version/Check-Activation-Status-vbs.cmd b/MAS/Separate-Files-Version/Check-Activation-Status-vbs.cmd index 471036c..a7b8685 100644 --- a/MAS/Separate-Files-Version/Check-Activation-Status-vbs.cmd +++ b/MAS/Separate-Files-Version/Check-Activation-Status-vbs.cmd @@ -39,12 +39,11 @@ set "Path=%SystemRoot%\Sysnative;%SystemRoot%\Sysnative\Wbem;%SystemRoot%\Sysnat :: Check LF line ending pushd "%~dp0" ->nul findstr /rxc:".*" "%~nx0" -if not %errorlevel%==0 ( +>nul findstr /v "$" "%~nx0" && ( echo: -echo Error: Script either has LF line ending issue, or it failed to read itself. +echo Error: Script either has LF line ending issue or an empty line at the end of the script is missing. echo: -ping 127.0.0.1 -n 6 > nul +ping 127.0.0.1 -n 6 >nul popd exit /b ) @@ -230,4 +229,5 @@ cscript //nologo "!office!\ospp.vbs" /dstatus echo. echo Press any key to exit. pause >nul -exit /b \ No newline at end of file +exit /b +:: Leave empty line below -- cgit v1.2.3