Advertisement
Onenoone1

ENB TS

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