Codice:
@echo off
SETLOCAL
color 1f
set XP=no
title Creating multi.ini
VER|find "Windows XP">nul
IF ERRORLEVEL 1 GOTO NT
title Creating multi.ini XP
set XP=yes
:NT
:drivedet
cls
echo TK Saturn.
echo.
echo to use boot into FSD and in Windows Explorer/ Network Sharing map \\XBOX360\[source] to a Windows Drive
echo.
set drives=
set drives2=
set drivefound=no
SETLOCAL enabledelayedexpansion
for /l %%i in (1,1,26) do (
if %%i==1 set drivedet=A
if %%i==2 set drivedet=B
if %%i==3 set drivedet=C
if %%i==4 set drivedet=D
if %%i==5 set drivedet=E
if %%i==6 set drivedet=F
if %%i==7 set drivedet=G
if %%i==8 set drivedet=H
if %%i==9 set drivedet=I
if %%i==10 set drivedet=J
if %%i==11 set drivedet=K
if %%i==12 set drivedet=L
if %%i==13 set drivedet=M
if %%i==14 set drivedet=N
if %%i==15 set drivedet=O
if %%i==16 set drivedet=P
if %%i==17 set drivedet=Q
if %%i==18 set drivedet=R
if %%i==19 set drivedet=S
if %%i==20 set drivedet=T
if %%i==21 set drivedet=U
if %%i==22 set drivedet=V
if %%i==23 set drivedet=W
if %%i==24 set drivedet=X
if %%i==25 set drivedet=Y
if %%i==26 set drivedet=Z
dir !drivedet!:\content>nul 2>nul
if !errorlevel!==0 (
set drivefound=yes
set drives=!drives!!drivedet!
set drives2=!drives2!!drivedet!:
vol !drivedet!: | findstr in
if exist !drivedet!:\autorun.inf for /f "delims== tokens=1,2 " %%i in ('findstr label !drivedet!:\autorun.inf') do echo -- %%j && echo.
)
)
if %drivefound%==no goto error
SETLOCAL disabledelayedexpansion
echo.
if %XP%==yes (
choicexp /C:%drives% "Enter drive letter: "
)
if %XP%==no choice /C %drives% /M "Enter drive letter: "
if %errorlevel%==1 set choice2=A
if %errorlevel%==2 set choice2=B
if %errorlevel%==3 set choice2=C
if %errorlevel%==4 set choice2=D
if %errorlevel%==5 set choice2=E
if %errorlevel%==6 set choice2=F
if %errorlevel%==7 set choice2=G
if %errorlevel%==8 set choice2=H
if %errorlevel%==9 set choice2=I
if %errorlevel%==10 set choice2=J
if %errorlevel%==11 set choice2=K
if %errorlevel%==12 set choice2=L
if %errorlevel%==13 set choice2=M
if %errorlevel%==14 set choice2=N
if %errorlevel%==15 set choice2=O
if %errorlevel%==16 set choice2=P
if %errorlevel%==17 set choice2=Q
if %errorlevel%==18 set choice2=R
if %errorlevel%==19 set choice2=S
if %errorlevel%==20 set choice2=T
if %errorlevel%==21 set choice2=U
if %errorlevel%==22 set choice2=V
if %errorlevel%==23 set choice2=W
if %errorlevel%==24 set choice2=X
if %errorlevel%==25 set choice2=Y
if %errorlevel%==26 set choice2=Z
for /F "delims=: tokens=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26" %%A in ("%drives2%") do set drive=%%%choice2%
setlocal enabledelayedexpansion
set ok=no
if exist %drive%:\multi.ini (
for /F "tokens=1,2,3 usebackq delims=/" %%i IN (`echo %date%`) DO set TKS=%%i-%%j-%%k
for /F "tokens=1,2,3 usebackq delims=:. " %%i IN (`time /t`) DO set TKS2=%%i%%j
for /F "tokens=1,2,3 usebackq delims=:." %%i IN (`echo %time%`) DO set TKS2=!TKS2!.%%k
ren %drive%:\multi.ini multi.!TKS!_!TKS2!
)
:top
set ok=no
set destchoice=xxx
cls
echo 1. Usb:\Games
echo 2. Hdd:\Games
echo 3. Hdd:\Content\0000000000000000
echo 4. Usb:\Content\0000000000000000
echo 5. Hdd:\Games\GODs
echo 6. Hdd:\Games\ISO2GOD
set /p destchoice=Source Directory [1,2,3,4,5,6]:
if %destchoice%==1 set dest=Usb:\Games&&set ok=yes
if %destchoice%==2 set dest=Hdd:\Games&&set ok=yes
if %destchoice%==3 set dest=Hdd:\Content\0000000000000000&&set ok=yes
if %destchoice%==4 set dest=Usb:\Content\0000000000000000&&set ok=yes
if %destchoice%==5 set dest=Hdd:\Games\GODs&&set ok=yes
if %destchoice%==6 set dest=Hdd:\Games\ISO2GOD&&set ok=yes
if NOT %ok%==yes goto top
for /f "usebackq delims=: tokens=1,2*" %%i in (`echo %dest%`) do set dest2=%%j
for /f "usebackq" %%i in (`dir %drive%:%dest2% /ad /b`) do (
dir "%drive%:%dest2%\%%i\00007000"|find "1 File(s)">nul
if !errorlevel!==1 (
if %%i==425307D1 echo.;The Elder Scrolls IV: Oblivion -- Game of the Year Edition >>%drive%:\multi.ini
if %%i==454108CE echo;;Mass Effect 2 >> %drive%:\multi.ini
if %%i==454108DF echo;;Dead Space 2 >> %drive%:\multi.ini
if %%i==4B4E0809 echo;;Castlevania: Lords of Shadow >> %drive%:\multi.ini
if %%i==4C4107D2 echo;;Star Wars: The Force Unleashed -- Ultimate Sith Edition >> %drive%:\multi.ini
if %%i==4D5307DF echo;;Blue Dragon >>%drive%:\multi.ini
if %%i==4D5307FA echo;;Lost Odyssey >>%drive%:\multi.ini
if %%i==4D53084D echo;;Forza Motorsport 3 >>%drive%:\multi.ini
if %%i==4E4D080B echo;;MagnaCarta II >>%drive%:\multi.ini
if %%i==4E4D080C echo;;MagnaCarta II >>%drive%:\multi.ini
if %%i==535107DA echo;;The Last Remnant >>%drive%:\multi.ini
if %%i==535107DB echo;;Infinite Undiscovery >>%drive%:\multi.ini
if %%i==535107DD echo;;Star Ocean: The Last Hope >>%drive%:\multi.ini
if %%i==535107E4 echo;;Final Fantasy XIII >>%drive%:\multi.ini
set disc=0
echo [%%i]>>%drive%:\multi.ini
for %%x in ("%drive%:%dest2%\%%i\00007000\*.*") do (
set /a disc = !disc! + 1
echo %%i %%~nx
echo disk!disc!=%dest%\%%i\00007000\%%~nx>>%drive%:\multi.ini
)
echo. >> %drive%:\multi.ini
)
)
goto end
:error
echo no mapped drives found, aborting.
pause
:end
Bac
Segnalibri