Advertisement
GlobalAccessSoftware

not_online.bat

Nov 16th, 2023
927
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.58 KB | Software | 0 0
  1.  
  2.  
  3. :::::::::::::::::::::::::::::::::::::::::::::::::::::::
  4. :: not_online.bat Split to call for inline return code.
  5. :: v7.9.8.77 20221114022244 by -JpE-
  6. :::::::::::::::::::::::::::::::::::::::::::::::::::::::
  7. ::set vers=v7.9.8.92 20221203232425 by -JpE-
  8.  
  9. ::: RC6
  10. :notonline
  11. if %w% equ 0 goto return
  12. set ino=is NOT Online!
  13.  
  14. :: I: is bk1
  15. if %w% equ 1 set drv=Backup1
  16. if %w% equ 1 set cpy=%bk1%
  17. if %w% equ 1 goto showmsg1
  18.  
  19. :: X: is bk2
  20. if %w% equ 2 set drv=Seagate7
  21. if %w% equ 2 set cpy=%bk2%
  22. if %w% equ 2 goto showmsg1
  23.  
  24. :: H: is bk3
  25. if %w% equ 3 set drv=Seagate1
  26. if %w% equ 3 set cpy=%bk3%
  27. if %w% equ 3 goto showmsg1
  28.  
  29. :: U: is bk4
  30. if %w% equ 7 set drv=Seagate16
  31. if %w% equ 7 set cpy=%bk4%
  32. if %w% equ 7 goto showmsg1
  33.  
  34. :: D: is cps
  35. if %w% equ 4 set drv=Destination Folder
  36. if %w% equ 4 set cpy=%cps%
  37. if %w% equ 4 set /a wipe=3
  38. if %w% equ 4 set /a exit2=4
  39. if %w% equ 4 goto showmsg1
  40.  
  41. :: C: is src
  42. if %w% equ 5 goto fatal
  43.  
  44. :: else huh?
  45. echo .
  46. echo %sl%
  47. echo        **** Unknown Error #13 ****
  48. echo %sl%
  49. echo .
  50. echo %l1%
  51. set echo An unknown error has occurred
  52. set msg="Would you like to investigate? (y/N): "
  53. choice /c ynocqk /n /t 60 /d n /m %msg%
  54. echo .
  55. if %errorlevel% neq 1 goto return
  56.  
  57.  
  58. set /a stop=0
  59. :loop
  60. set /a stop+=1
  61. if %stop% gtr 2 goto return
  62. echo %l1%
  63. echo .
  64. pause
  65. echo .
  66. goto loop
  67.  
  68.  
  69. :: C: is src (w==5)
  70. :fatal
  71. set drv=Fatal Error: %oper% Source Folder
  72. set cpy=%src%
  73. set /a wipe=4
  74. set /a exit2=4
  75.  
  76.  
  77. :showmsg1
  78. echo .
  79. echo %sl%
  80. echo             *** %drv% (%cpy:~1,2%) %ino% ***
  81. echo %sl%
  82. echo .
  83.  
  84.  
  85. :return
  86.  
  87.  
  88.  
  89. :: 100% -JpE-
  90.  
  91.  
  92.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement