GlobalAccessSoftware icon

Silent_mode.bat

GlobalAccessSoftware | PRO | 11/16/23 05:51:44 AM UTC | 0 ⭐ | 14008 👁️ | Never ⏰ | []
Batch |

2.67 KB

|

Software

|

0 👍

/

0 👎

 
 
::: RC8 Update! :::
 
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::: Silent_mode.bat by John Paul Edwards April 10, 2023
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::: Launch AAA_Sync in Silent Mode, output to Logfile :::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::     -- output to Logfile Pending: rev 8.2+ --
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 
             :::::::[ PROGRAM MAIN ]:::::::
  @echo off
  if not defined vers set vers=v8.7.0.10 20231108073214 by -JpE-
 
:main
  set titl2=Silent_mode.bat %vers% launched: %date% @ %time%
  title %titl2%
  if not defined bats set bats=C:\Users\%username%\Documents\AAA Sync2Laptop\Batch Files\BCS-Suite
  if not exist "%bats%" echo . & echo Folder not found! & echo . & pause & exit
  if not defined util1 set util1="%bats%\utility1.bat"
  if not exist %util1% echo . & echo %util1% not found! & echo . & pause & exit
  if not defined util3 set util3="%bats%\utility3.bat"
  if not exist %util3% echo . & echo %util3% not found! & echo . & pause & exit
 
::start
  set ty1=25
  if not defined code2 set /a code2=0  
  call %util1% "shotcaller"
  ::: Defaults to this ^ label if no arg passed.
 
 
 
  set oper=Silent
::: *** Test Code for ErrorHandling.bat
if not defined testwell set testwell=0
REM set testwell=1
REM set testwell=3
REM set /a code2=7
REM echo . & pause & exit
 
 
:ready
  if %code2% equ 7 goto err1
  set msg="Ready to Run Backups? (Y/n): "
  choice /c yn /n /t 10 /d y /m %msg%
  if %errorlevel% equ 2 goto return
  
  echo . & echo Proceeding... & echo .
  set AAA="%bats%\AAA-Sync.bat"
  if not exist %AAA% echo . & echo %AAA% not found! & echo . & goto err1
  set filename1="%bats%\overrider3.txt"
  ::: Purely a runtime file ^ see usages implementing override1 in %AAA% @:restart and the override1 var thereafter in several of the BCS code files. (Load Session, Use Search ALL Open Documents)
  if exist %filename1% del /f /s /q %filename1%
  copy %util1% %filename1% & call %AAA%
  if exist %filename1% del /f /s /q %filename1%
  title %titl2%
 
 
:return
  echo . & echo .
  set msg="Review what happened? (y/N): "
  choice /c yn /n /t %ty1% /d n /m %msg%
  if %errorlevel% equ 1 echo . & pause & echo . & goto return
  exit /b %errorlevel%
 
 
                    :::::::[ Error and Exit Routines ]:::::::
:err1
  echo oopsie an error sent Flow here. Get on it!
  set txt=OMG It fn Werked! Error Detected Successfully!
  title %txt%  
  set sender1=Silent_mode.bat
  set errr="%bats%\ErrorHandling.bat"
  if exist %errr% call %errr% "%txt%" "%sender1%"
  REM goto return
  goto ready
 
 
 
:::  100%  -JpE-
 
 
 

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎