Advertisement
imaproperson

CARBON CODE

Nov 16th, 2024 (edited)
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 4.00 KB | None | 0 0
  1. @echo off
  2. title AXOS Client
  3.  
  4. :: Define the Pastebin raw URL for the latest version
  5. set "pastebin_url=https://pastebin.com/raw/Zr3XkHsd"
  6.  
  7. :: Define the name of the current batch file
  8. set "batch_file=%~f0"
  9.  
  10. :: Define a temporary file for downloading the update
  11. set "temp_file=%temp%\AXOS_Client_Update.bat"
  12.  
  13. :home
  14. cls
  15. echo ----------------------------------------------
  16. echo                 AXOS Client
  17. echo ----------------------------------------------
  18. echo Description:
  19. echo Placeholder
  20. echo ----------------------------------------------
  21. echo [1] Settings
  22. echo [2] Tools
  23. echo [3] Fun
  24. echo [4] Ideas
  25. echo [5] Update Script
  26. echo [6] Exit
  27. echo ----------------------------------------------
  28. set /p choice="Enter your choice: "
  29. if "%choice%"=="1" goto settings
  30. if "%choice%"=="2" goto tools
  31. if "%choice%"=="3" goto fun
  32. if "%choice%"=="4" goto ideas
  33. if "%choice%"=="5" goto update
  34. if "%choice%"=="6" exit
  35.  
  36. :update
  37. cls
  38. echo ----------------------------------------------
  39. echo            Update AXOS Client Script
  40. echo ----------------------------------------------
  41. echo Fetching the latest version of AXOS Client...
  42. powershell -Command "(New-Object System.Net.WebClient).DownloadFile('%pastebin_url%', '%temp_file%')" >nul 2>&1
  43.  
  44. :: Verify if the file was downloaded successfully
  45. if not exist "%temp_file%" (
  46.     echo Failed to fetch the latest version. Please check your internet connection or the Pastebin URL.
  47.     pause
  48.     goto home
  49. )
  50.  
  51. :: Test the downloaded script
  52. echo Verifying the update...
  53. findstr /i ":home" "%temp_file%" >nul
  54. if errorlevel 1 (
  55.     echo Update verification failed. The downloaded file is invalid.
  56.     del "%temp_file%"
  57.     pause
  58.     goto home
  59. )
  60.  
  61. :: Apply the update
  62. echo Update verified. Applying update...
  63. move /y "%temp_file%" "%batch_file%" >nul
  64. if errorlevel 1 (
  65.     echo Failed to apply the update. Ensure this file has write permissions.
  66.     del "%temp_file%"
  67.     pause
  68.     goto home
  69. )
  70.  
  71. :: Restart the updated script
  72. echo Update applied successfully. Restarting...
  73. start "" "%batch_file%"
  74. exit
  75.  
  76. :: Settings and Tools go here...
  77.  
  78. :settings
  79. cls
  80. echo ----------------------------------------------
  81. echo              Settings
  82. echo ----------------------------------------------
  83. echo [1] PC Info
  84. echo [2] Back
  85. echo ----------------------------------------------
  86. set /p settings_choice="Enter your choice: "
  87. if "%settings_choice%"=="1" goto pc_info
  88. if "%settings_choice%"=="2" goto home
  89.  
  90. :pc_info
  91. cls
  92. echo ----------------------------------------------
  93. echo          PC Information
  94. echo ----------------------------------------------
  95. echo [1] Storage
  96. echo [2] Back
  97. echo ----------------------------------------------
  98. set /p pc_choice="Enter your choice: "
  99. if "%pc_choice%"=="1" goto storage
  100. if "%pc_choice%"=="2" goto settings
  101.  
  102. :storage
  103. cls
  104. echo ----------------------------------------------
  105. echo        Storage Information
  106. echo ----------------------------------------------
  107. wmic logicaldisk get caption,size,freespace
  108. echo ----------------------------------------------
  109. pause
  110. goto pc_info
  111.  
  112. :tools
  113. cls
  114. echo ----------------------------------------------
  115. echo               Tools
  116. echo ----------------------------------------------
  117. echo [1] Apps
  118. echo [2] Roblox
  119. echo [3] Gorilla Tag
  120. echo [4] Back
  121. echo ----------------------------------------------
  122. set /p tools_choice="Enter your choice: "
  123. if "%tools_choice%"=="1" goto apps
  124. if "%tools_choice%"=="2" goto check_roblox
  125. if "%tools_choice%"=="3" goto check_gorilla_tag
  126. if "%tools_choice%"=="4" goto home
  127.  
  128. :check_roblox
  129. tasklist /fi "imagename eq RobloxPlayerBeta.exe" | find /i "RobloxPlayerBeta.exe" > nul
  130. if errorlevel 1 (
  131.     echo Please open Roblox first.
  132.     pause
  133.     goto tools
  134. ) else (
  135.     goto roblox
  136. )
  137.  
  138. :check_gorilla_tag
  139. tasklist /fi "imagename eq Gorilla Tag.exe" | find /i "Gorilla Tag.exe" > nul
  140. if errorlevel 1 (
  141.     echo Please open Gorilla Tag first.
  142.     pause
  143.     goto tools
  144. ) else (
  145.     goto gorilla
  146. )
  147.  
  148. :: Add any additional sections for Fun, Ideas, Apps, etc.
  149.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement