GlobalAccessSoftware

exit_main.bat

Nov 16th, 2023
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.25 KB | Software | 0 0
  1.  
  2.  
  3. ::: RC8 Update. :::
  4.  
  5. :: /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\
  6. :: ReVision 2: Split out and modified. While creating the   //
  7. :: RunTime interface with both SyncOlderPhotos && AAA-Sync  \\
  8. :: :: DON'T MIX UP THE TWO MODS! reuse runtime & exit_main  //
  9. :: set /a vers=v7.9.5.50 Gato: TESTWELL! <==<< <==<< <==<<  \\
  10. :: \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\//
  11.  
  12.   if not defined vers set vers=v8.5.7.86 20230816013412 by -JpE-
  13.  
  14. :runt
  15.   title %ttl%  
  16.  ::: ***New Rev! single line change (see below for details)
  17.   call :pops
  18.   echo .
  19.   if exist %fileo% if exist %smsg% call %smsg%
  20.   if exist %fileo% echo .
  21.   if exist %fileo% del /f /s /q %fileo%
  22.   if exist %fileo% echo .
  23.   echo .
  24.   set runt="%bats%\runtime_display.bat"
  25.   if not exist %runt% echo %runt% cannot be found!
  26.  ::
  27.   if exist %runt% call %runt%
  28.  ::
  29.  :: See modifications in runtime_display.bat!
  30.   if %review% geq 1 goto hangon
  31.  
  32.  
  33. :exit3
  34.   set ty1=300
  35.  REM & set /a errorlevel=0
  36.   if %override1% equ 1 set ty1=15
  37.   echo .
  38.   set msg=">>===>   S)tart Again? Q)uit? or P)ause? (sQp): "
  39.   choice /c sqp /n /t %ty1% /d q /m %msg%
  40.   echo .
  41.   echo %l2%
  42.   if %errorlevel% equ 1 goto start
  43.   if %errorlevel% equ 2 goto return
  44.  
  45.  
  46. :hangon
  47.   echo .
  48.  :: implicit %errorlevel% equ 3 (pause)
  49.   if %review% neq 1 set /a review=%errorlevel%
  50.   if %review% gtr 0 pause
  51.   if %review% gtr 0 echo .
  52.   if %review% gtr 0 echo %l2%
  53.   if %review% gtr 0 echo .
  54.   if %review% gtr 0 pause
  55.   if %review% gtr 0 echo .
  56.   if %review% gtr 0 echo %l2%
  57.   set /a review=0
  58.   goto exit3
  59.  
  60.  
  61. ::: pops is new to the code and code file.
  62. :pops
  63.   if not defined bats echo WELL FUCK! & pause & exit /b 10101
  64.  
  65.   set fn="%bats%\backupschdltsks-A.bat"
  66.   set f2="%bats%\SyncronizeMatchedFiles.bat"
  67.  :::
  68.   if exist %fn% call %fn%
  69.   echo .
  70.   if %errorlevel% neq 0 (
  71.     echo Error in Scheduled Tasks Backup!) else (
  72.       echo Scheduled Tasks Backed Up! )
  73.   echo .
  74.  :::
  75.   if exist %f2% call %f2%
  76.   echo .
  77.   if %errorlevel% equ 0 (
  78.     echo Matched Files Error in Sync File Backup. ) else (
  79.       echo Matched Files Sync'ed!)
  80.   echo .
  81.  :::
  82.   exit /b %errorlevel%
  83.  
  84.  
  85. :start
  86.   set /a exit2=4
  87.  
  88.  
  89. :return
  90.  REM exit /b %errorlevel%
  91.  
  92.  
  93.  
  94.   ::: 100% -JpE-
  95.  
  96.  
  97.  
Add Comment
Please, Sign In to add comment