Advertisement
Onenoone1

ENB TS

Feb 2nd, 2025 (edited)
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 3.58 KB | None | 0 0
  1. @echo off
  2. chcp 65001 >nul
  3.  
  4.  echo เครื่องต้องมีพื้นที่อย่างน้อย35GB!!!
  5.  
  6. :: ตั้งรหัสผ่าน
  7. set "password=123"
  8.  
  9. :: ขอให้ผู้ใช้ป้อนรหัสผ่าน
  10. set /p "inputPassword=ใส่รหัสผ่าน: "
  11.  
  12. :: ตรวจสอบรหัสผ่าน
  13. if not "%inputPassword%"=="%password%" (
  14.     echo [ERROR] รหัสผ่านไม่ถูกต้อง! กรุณาติดต่อ https://web.facebook.com/chonlathan.nillerd/
  15.     pause
  16.     exit /b
  17. )
  18.  
  19. :: ตรวจสอบว่า D:\MorganGames_x64 มีอยู่หรือไม่
  20. if not exist "C:\MorganGames_x64" (
  21.     echo [ERROR] ไม่พบโฟลเดอร์ C:\MorganGames_x64 กรุณาติดต่อ https://web.facebook.com/chonlathan.nillerd/
  22.     pause
  23.     exit /b
  24. )
  25.  
  26. :: ตรวจสอบและสร้าง C:\Backup\def หากยังไม่มี
  27. if not exist "C:\Backup\def" (
  28.     echo สร้างโฟลเดอร์สำรอง: C:\Backup\def
  29.     mkdir "C:\Backup\def"
  30. )
  31.  
  32. :: ตรวจสอบว่ามีไฟล์ gta_sa.exe ใน C:\Backup\def หรือไม่
  33. if exist "C:\Backup\def\gta_sa.exe" (
  34.     echo พบไฟล์ gta_sa.exe ใน C:\Backup\def แล้ว ข้ามขั้นตอนการสำรองข้อมูล
  35. ) else (
  36.    :: สำรองไฟล์ทั้งหมดจาก C:\MorganGames_x64 ไปยัง C:\Backup\def
  37.     echo กำลังสำรองข้อมูลจาก C:\MorganGames_x64 ไปยัง C:\Backup\def...
  38.     xcopy "C:\MorganGames_x64\*" "C:\Backup\def" /E /H /C /I /Y
  39. )
  40.  
  41. :: ดาวน์โหลดไฟล์จากคลาวด์
  42. set "downloadUrl=https://drive.usercontent.google.com/download?id=1Vj5-_rTIFvHkawzKnyxkgGzhCZGLK01h&export=download&authuser=0&confirm=t&uuid=5733ed00-2efa-444a-b1e4-59b13528f282&at=AIrpjvO5cwDl0GijFcOD3MiY8oOc%3A1739008406028"
  43. set "downloadPath=%~dp0Ntxfile.zip"
  44. set "extractPath=%~dp0temp"
  45.  
  46. :: ตรวจสอบว่ามี curl หรือ wget
  47. where curl >nul 2>nul
  48. if %errorlevel%==0 (
  49.     echo กำลังดาวน์โหลดไฟล์ด้วย curl...
  50.     curl -o "%downloadPath%" "%downloadUrl%"
  51. ) else (
  52.     where wget >nul 2>nul
  53.     if %errorlevel%==0 (
  54.         echo กำลังดาวน์โหลดไฟล์ด้วย wget...
  55.         wget -O "%downloadPath%" "%downloadUrl%"
  56.     ) else (
  57.         echo [ERROR] ไม่พบ curl หรือ wget ในระบบ
  58.         pause
  59.         exit /b
  60.     )
  61. )
  62.  
  63. :: แตกไฟล์ zip
  64. powershell -Command "Expand-Archive -Path '%downloadPath%' -DestinationPath '%extractPath%' -Force"
  65.  
  66. :: คัดลอกโฟลเดอร์ Ntxfile ทั้งหมดไปยัง C:\MorganGames_x64
  67. xcopy "%temp%\temp\Ntxfile" "C:\MorganGames_x64\Ntxfile\" /E /H /C /I /Y
  68.  
  69. :: ย้ายเนื้อหาทั้งหมดจาก Ntxfile ไปยัง C:\MorganGames_x64
  70. xcopy "C:\MorganGames_x64\Ntxfile\*" "C:\MorganGames_x64\" /E /H /C /I /Y
  71. move /y "C:\MorganGames_x64\Ntxfile\*" "C:\MorganGames_x64\"
  72.  
  73. :: ลบโฟลเดอร์ Ntxfile ที่ว่างเปล่า
  74. rmdir /s /q "C:\MorganGames_x64\Ntxfile"
  75.  
  76. :: ลบไฟล์ temp หลังการใช้งาน
  77. rd /s /q "%extractPath%"
  78. del "%downloadPath%"
  79.  
  80. echo การดำเนินการเสร็จสมบูรณ์
  81. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement