Advertisement
GlobalAccessSoftware

outlook_handler.bat

Nov 16th, 2023
744
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 3.52 KB | Software | 0 0
  1.  
  2.  
  3. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  4. :: When backup drives are online backup Samsung Folder. If ok.     ::
  5. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  6. :: Called from AA-Sync.bat and depends on it's vars & values.      ::
  7. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  8.  
  9. ::: RC6
  10. :phone
  11. title ***** Phone_Backups Pro Deluxe *****
  12. ::set vers=7.9.9.04 20221228021501 by -JpE-
  13. echo .
  14. echo %sl%
  15. echo                PhoneBackups Ultra Pro Deluxe:
  16. echo              re%vers%
  17. echo %sl%
  18. echo .
  19. set ss=\Smartswitch
  20. set sb=\Samsung Backups
  21. set ds="D:%sb%%ss%"
  22. set hs="H:%sb%%ss%"
  23. set xs="X:\%username%-PC%sb%%ss%"
  24. set us="R:%sb%%ss%"
  25.  
  26. set /a hh=0
  27. set /a xx=0
  28. set /a uu=0
  29. set /a samsung=0
  30.  
  31.  
  32. :backup1
  33. if not exist %ds% goto err1
  34. if not exist %hs% goto seagate7
  35. call :doit %hs%
  36. echo . & echo %time%
  37. if %errorlevel% neq 0 set /a hh=1
  38.  
  39.  
  40. :seagate7
  41. if not exist %xs% if %hh% equ 0 goto seagate16
  42. if not exist %xs% if %hh% neq 0 goto err2
  43. call :doit %xs%
  44. echo . & echo %time%
  45. if %errorlevel% neq 0 set /a xx=1
  46.  
  47.  
  48. :seagate16
  49. if not exist %us% if %hh% equ 0 goto exit4
  50. if not exist %us% if %hh% neq 0 goto err2
  51. ::: Special Case of Collect-ALL backup.
  52. set was=%clrphodest% & set /a clrphodest=0
  53. call :doit %us%
  54. echo . & echo %time%
  55. set /a clrphodest=%was%
  56. if %errorlevel% neq 0 set /a uu=1
  57. goto exit4
  58.  
  59.  
  60. ::::::::::::::::::::::::
  61. ::: Reused Function  :::
  62. ::::::::::::::::::::::::
  63. :doit <stringVar_Destination>
  64. set dest="%~1"
  65. echo %l1%
  66. echo %time%
  67. echo .
  68. echo %sl%
  69. echo                  Backing up Victoria to %dest:~1,3%
  70. echo %sl%
  71. echo .
  72. if %clrphodest% equ 1 del /f /s /q %dest%"\"*.*
  73. xcopy %ds%"\"*.* %dest% /D /E /V /C /F /G /R /K /Y /Z /B /J
  74. echo .
  75. if %errorlevel% neq 0 goto error
  76. echo %sl%
  77. echo              Backup of phone to %dest:~1,3% Successful!
  78. echo %sl%
  79. if %errorlevel% equ 0 goto end
  80. :error
  81. echo errorlevel == %errorlevel%
  82. pause
  83. :end
  84. exit /b %errorlevel%
  85. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  86.  
  87.  
  88. :ohsnap
  89. echo %l1%
  90. echo  ** %date% @ %time%
  91. echo .
  92. echo %sl%
  93. set n1= is NOT currently Online.
  94. if exist %hs% goto jump1
  95. echo            **** %hs:~1,2%%n1% ****
  96. echo %sl%
  97. ::
  98. :jump1
  99. if exist %xs% goto jump2
  100. echo .
  101. REM if not exist %hs% echo .
  102. REM if not exist %hs% echo %sl%
  103. echo %sl%
  104. echo            **** %xs:~1,2%%n1% ****
  105. echo %sl%
  106. ::
  107. :jump2
  108. if exist %us% goto jump3
  109. echo .
  110. REM if not exist %hs% if not exist %xs% echo .
  111. REM if not exist %hs% if not exist %xs% echo %sl%
  112. echo %sl%
  113. echo            **** %us:~1,2%%n1% ****
  114. echo %sl%
  115. echo .
  116. echo %time%
  117. ::
  118. :jump3
  119. echo .
  120. echo %l1%
  121. goto exit5
  122. :::::^^^^^::::::::::::v7.9.7.57 20221102032101::-JpE-::::::::::::::::
  123.  
  124.  
  125. :err1
  126. set msg="*** Source File For Samsung Backups Not Online!"
  127. goto err3
  128. ::
  129. :err2
  130. set jon= AND
  131. set txt=
  132. if %hh% gtr 0 set txt=Backup1
  133. if %hh% gtr 0 if %xx% gtr 0 set txt=%txt%%jon%
  134. if %xx% gtr 0 set txt=%txt%Seagate7 (X:)
  135. set msg="*** Problems copying to %txt%. (ok): "
  136. ::
  137. :err3
  138. echo %l1%
  139. choice /c ok /n /t 45 /d k /m %msg%
  140. ::::::::Choice does nothing at present but timeout paws ::::::::::::::
  141.  
  142.  
  143. :: Newer mod links :ohsnap label here. (coded above)
  144. :exit4
  145. if not exist %hs% goto ohsnap
  146. if exist %hs% if not exist %xs% goto ohsnap
  147. :: Otherwise it gets both if gone to once. But just once.-ed
  148. if exist %hs% if exist %xs% if not exist %us% goto ohsnap
  149. ::
  150. :exit5
  151. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  152.  
  153.  
  154.  
  155. :: 100% -JpE-
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement