:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::: playlist_errors.bat v7.9.8.96 20221210180821 by -JpE- :::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::: Custom Exception Handling Routine written 20220525021245.21 :::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::set vers=v7.9.9.03 20221219054011 by -JpE-
:: bak 4 means Finish Simple-Backup Early. IF err!=3 Success!
if %bak% equ 4 if %err% neq 3 goto return
::
echo . & echo %sl%
set fe= **** This is a Fatal Error to current Operations. ****
set nf= **** Error is Non-Fatal, so we continue. ****
::
:: err 1 is no source, not so fatal error.
if %err% equ 1 echo . & echo **** Playlist Source Folder NOT Found! ****
if %err% equ 1 echo %sl%
if %err% equ 1 echo %nf%
::
:: err 2 is no docs folder, very fatal.
if %err% equ 2 echo . & echo **** Users Documents Folder not found. ****
if %err% equ 2 echo %sl%
if %err% equ 2 echo %fe%
::
:: err 3 is problem copying those. Nearly Fatal Error.
if %err% equ 3 echo . & echo **** Problem Backing up Original folder. ****
if %err% equ 3 echo %sl%
if %err% equ 3 echo %nf%
::
:: If any of those then we're done here. For now.
if %err% lss 4 echo .
if %err% lss 4 %sl%
if %err% lss 4 echo .
if %err% lss 4 echo %l2%
if %err% lss 4 goto return
::: implicite ^ %err% gtr 3 for the below.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::: Design Note to Dev: If x/2 equal remainder (modulus) of 0 it's even ie. offline, otherwise it is implicitely odd ie. a problemo.
::: Thus, if mod is zero it's even number, if non-zero it's an odd number.
set /a "mod=%err% %% 2%"
if %mod% equ 0 echo **** %mtxt% (%dir%) is currently offline. ****
if %mod% equ 0 echo %sl% & echo %nf%
::
if %mod% equ 0 goto return
::
if %mod% neq 0 echo **** There was a problem copying to (%dir%) ****
if %mod% neq 0 echo %sl% & echo %nf
:return
echo %sl%
echo .
echo %l1%
::: 100% -JpE-
Comments
0 B
|👍
/👎
0 B
|👍
/👎