Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- chcp 65001 >nul
- echo เครื่องต้องมีพื้นที่อย่างน้อย35GB!!!
- :: ตั้งรหัสผ่าน
- set "password=123"
- :: ขอให้ผู้ใช้ป้อนรหัสผ่าน
- set /p "inputPassword=ใส่รหัสผ่าน: "
- :: ตรวจสอบรหัสผ่าน
- if not "%inputPassword%"=="%password%" (
- echo [ERROR] รหัสผ่านไม่ถูกต้อง! กรุณาติดต่อ https://web.facebook.com/chonlathan.nillerd/
- pause
- exit /b
- )
- :: ตรวจสอบว่า D:\MorganGames_x64 มีอยู่หรือไม่
- if not exist "C:\MorganGames_x64" (
- echo [ERROR] ไม่พบโฟลเดอร์ C:\MorganGames_x64 กรุณาติดต่อ https://web.facebook.com/chonlathan.nillerd/
- pause
- exit /b
- )
- :: ตรวจสอบและสร้าง C:\Backup\def หากยังไม่มี
- if not exist "C:\Backup\def" (
- echo สร้างโฟลเดอร์สำรอง: C:\Backup\def
- mkdir "C:\Backup\def"
- )
- :: ตรวจสอบว่ามีไฟล์ gta_sa.exe ใน C:\Backup\def หรือไม่
- if exist "C:\Backup\def\gta_sa.exe" (
- echo พบไฟล์ gta_sa.exe ใน C:\Backup\def แล้ว ข้ามขั้นตอนการสำรองข้อมูล
- ) else (
- :: สำรองไฟล์ทั้งหมดจาก C:\MorganGames_x64 ไปยัง C:\Backup\def
- echo กำลังสำรองข้อมูลจาก C:\MorganGames_x64 ไปยัง C:\Backup\def...
- xcopy "C:\MorganGames_x64\*" "C:\Backup\def" /E /H /C /I /Y
- )
- :: ดาวน์โหลดไฟล์จากคลาวด์
- 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"
- set "downloadPath=%~dp0Ntxfile.zip"
- set "extractPath=%~dp0temp"
- :: ตรวจสอบว่ามี curl หรือ wget
- where curl >nul 2>nul
- if %errorlevel%==0 (
- echo กำลังดาวน์โหลดไฟล์ด้วย curl...
- curl -o "%downloadPath%" "%downloadUrl%"
- ) else (
- where wget >nul 2>nul
- if %errorlevel%==0 (
- echo กำลังดาวน์โหลดไฟล์ด้วย wget...
- wget -O "%downloadPath%" "%downloadUrl%"
- ) else (
- echo [ERROR] ไม่พบ curl หรือ wget ในระบบ
- pause
- exit /b
- )
- )
- :: แตกไฟล์ zip
- powershell -Command "Expand-Archive -Path '%downloadPath%' -DestinationPath '%extractPath%' -Force"
- :: คัดลอกโฟลเดอร์ Ntxfile ทั้งหมดไปยัง C:\MorganGames_x64
- xcopy "%temp%\temp\Ntxfile" "C:\MorganGames_x64\Ntxfile\" /E /H /C /I /Y
- :: ย้ายเนื้อหาทั้งหมดจาก Ntxfile ไปยัง C:\MorganGames_x64
- xcopy "C:\MorganGames_x64\Ntxfile\*" "C:\MorganGames_x64\" /E /H /C /I /Y
- move /y "C:\MorganGames_x64\Ntxfile\*" "C:\MorganGames_x64\"
- :: ลบโฟลเดอร์ Ntxfile ที่ว่างเปล่า
- rmdir /s /q "C:\MorganGames_x64\Ntxfile"
- :: ลบไฟล์ temp หลังการใช้งาน
- rd /s /q "%extractPath%"
- del "%downloadPath%"
- echo การดำเนินการเสร็จสมบูรณ์
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement