Advertisement
GlobalAccessSoftware

phone_backups.bat

Jul 4th, 2022
850
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. REM Missing and Main Modules are available.
  2. REM Together with these samples, it's 1 process.
  3. REM /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
  4. REM Send $5 with an email address I can send it to:
  5. REM John Edwards
  6. REM 23811 Washington Ave
  7. REM Ste C-110 PMB 1050
  8. REM Murrieta, CA  92562
  9. REM /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
  10.  
  11. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  12. :: When backup drives are online backup Samsung Folder. If ok.     ::
  13. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  14. :: Called from AA-Sync.bat and depends on it's vars & values.      ::
  15. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  16. :phone
  17. title ***** Phone_Backups Pro Deluxe *****
  18. set vers=7.8.9.97 2022629542 by -JpE-
  19. echo %l2%
  20. echo .
  21. echo %sl%
  22. echo          PhoneBackups v%vers%
  23. echo %sl%
  24. echo .
  25. set ss=\Smartswitch
  26. set sb=\Samsung Backups
  27. set ds="D:%sb%%ss%"
  28. set hs="H:%sb%%ss%"
  29. set xs="X:\JpE-PC%sb%%ss%"
  30.  
  31. set /a hh=0
  32. set /a xx=0
  33. set /a samsung=0
  34.  
  35. if not exist %ds% goto err1
  36. if not exist %hs% goto seagate7
  37. echo %l1%
  38. time /t
  39. echo %sl%
  40. echo                  Backing up Victoria to H:
  41. echo %sl%
  42. echo .
  43. if %clrphodest% equ 1 del /f /s /q %hs%"\"*.*
  44. xcopy %ds%"\"*.* %hs% /D /E /V /C /F /G /R /K /Y /Z /B /J
  45. echo .
  46. time /t
  47. if %errorlevel% neq 0 set /a hh=1
  48. if %errorlevel% neq 0 goto seagate7
  49. echo %sl%
  50. echo              Backup of phone to H: Successful!
  51. echo %sl%
  52. echo .
  53.  
  54.  
  55. :seagate7
  56. if not exist %xs% if %hh% equ 0 goto exit3
  57. if not exist %xs% if %hh% neq 0 goto err2
  58. echo %l1%
  59. time /t
  60. echo %sl%
  61. echo                  Backing up Victoria to X:
  62. echo %sl%
  63. echo .
  64. time /t
  65. echo .
  66. if %clrphodest% equ 1 del /f /s /q %xs%"\"*.*
  67. xcopy %ds%"\"*.* %xs% /D /E /V /C /F /G /R /K /Y /Z /B /J
  68. echo .
  69. time /t
  70. if %errorlevel% neq 0 set /a xx=1
  71. if %errorlevel% neq 0 goto err2
  72. echo %sl%
  73. echo              Backup of phone to X: Successful!
  74. echo %sl%
  75. echo .
  76. goto exit3
  77. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  78.  
  79.  
  80. :oh
  81. :: Snap!
  82. echo %l1%
  83. echo  ** %date% @ %time%
  84. echo .
  85. echo %sl%
  86. set n1= is NOT currently Online.
  87. if exist %hs% goto jump1
  88. echo            **** %hs:~1,2%%n1% ****
  89. echo %sl%
  90.  
  91. :jump1
  92. if exist %xs% goto jump2
  93.  
  94. if not exist %hs% echo .
  95. if not exist %hs% echo %sl%
  96. REM echo .
  97. echo            **** %xs:~1,2%%n1% ****
  98. echo %sl%
  99.  
  100. :jump2
  101. echo .
  102. echo %l1%
  103. goto exit4
  104. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  105.  
  106.  
  107. :err1
  108. set msg="*** Source File For Samsung Backups Not Online!"
  109. goto err3
  110. ::
  111. :err2
  112. set jon= AND
  113. set txt= .
  114. if %hh% gtr 0 set txt=Backup1
  115. if %hh% gtr 0 if %xx% gtr 0 set txt=%txt%%jon%
  116. if %xx% gtr 0 set txt=%txt%Seagate7
  117. set msg="*** Problems copying to %txt%. (ok): "
  118. ::
  119. :err3
  120. echo %l1%
  121. echo **
  122. choice /c ok /n /t 30 /d k /m %msg%
  123. echo %l2%
  124. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  125.  
  126.  
  127. :exit3
  128. if not exist %hs% goto oh
  129. if exist %hs% if not exist %xs% goto oh
  130. :: Otherwise it gets both if gone to even once. But at least once.-ed
  131.  
  132. :exit4
  133. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  134.  
  135. :: 100% -JpE-
  136.  
  137. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  138. ::    Below is Temporary Workspace for the view across the way.    ::
  139. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
Advertisement
RAW Paste Data Copied
Advertisement