- Joined
- Dec 2, 2014
- Messages
- 5,026
- Reaction score
- 3,837
- Trophies
- 2
- Age
- 30
- Location
- Las Vegas, Nevada
- XP
- 4,511
- Country

Finally decided to create a new thread for my batch file.
I based my work off of something @nolimits59 made, and after that they and @nexusmtz helped me implement additional features.
It's a batch file that allows you to batch-download multiple games at once using NUSGrabber.
Current Version: 1.2.0
Added in 1.2.0:
- Automatically moves game downloads from "install" to "GameBackups" before starting downloads. This is to clean the install folder between uses so each time you can simply copy-paste the install folder without re-copying the old downloads
- Added comments to the script to explain what each part does for anyone who is interested
Current Features:
- Batch download games with nusgrabber
- Automatically finds the correct title.tik from \tickets (requires downloading and unzipping tik database from that iso site)
- Automatically detects game name using the tik database folder system withing \tickets
- Can automatically grab updates for each game (program will ask for each title if you wish to also grab updates)
- Downloads will automatically be renamed and moved into \install, using the correct format for wupinstaller mod y. This means once you finish downloading you can simply copy the created install folder to the SD root and you can batch install using wupinstaller mod y
Download:
https://mega.nz/#!YJlCHS7a!7Nr6I2OCb6m6emZ0PLBqQ5seti4AyU0_gwVXsauOkk8
This version was made to work with NUSGrabber:
http://wupinstaller.com/NUSGrabber.rar
Download:
https://mega.nz/#!NYNzHZ6a!b0AcfymBdHDMbv-5zyc7xAg_tnlM44n0AsAURhX_b0A
This version was made to work with JNUSTool:
https://gbatemp.net/threads/jnustool-nusgrabber-and-cdecrypt-combined.413179/
It's one of the few ways I've seen to really batch download games + updates.
I based my work off of something @nolimits59 made, and after that they and @nexusmtz helped me implement additional features.
It's a batch file that allows you to batch-download multiple games at once using NUSGrabber.
Current Version: 1.2.0
Added in 1.2.0:
- Automatically moves game downloads from "install" to "GameBackups" before starting downloads. This is to clean the install folder between uses so each time you can simply copy-paste the install folder without re-copying the old downloads
- Added comments to the script to explain what each part does for anyone who is interested
Current Features:
- Batch download games with nusgrabber
- Automatically finds the correct title.tik from \tickets (requires downloading and unzipping tik database from that iso site)
- Automatically detects game name using the tik database folder system withing \tickets
- Can automatically grab updates for each game (program will ask for each title if you wish to also grab updates)
- Downloads will automatically be renamed and moved into \install, using the correct format for wupinstaller mod y. This means once you finish downloading you can simply copy the created install folder to the SD root and you can batch install using wupinstaller mod y
Code:
@echo off
::Set Current Directory, gets saved to variable "nusdir"
cd %~dp0
set nusdir=%~dp0
::Clear download.bat to remove the previous download list and commands
echo. > download.bat
::Create needed directories if they don't already exist
if not exist GameBackups md GameBackups
if not exist tickets (
md tickets
cls
echo "tickets" folder created. Please unzip the tik database from "that iso site" into the tickets folder.
pause
)
::Start of loop to create game download list
:setgamelist
::Make variables created within the loop only last during that loop
SETLOCAL
cls
echo Type -1 to begin downloads, or add more below.
::User input for title ID, gets saved to variable "id"
set /P id="Enter Title ID: "
::Check if user input is -1, and if so exits loop
if "%id%" == "-1" goto end
::User input to automatically download game updates, gets saved to variable "update"
set /p update="Download game updates? (y,n): "
::Attempts to find a folder within \tickets whose name matches the Title ID set earlier
for /d /r "%NusDir%\tickets" %%a in (*) do if /i %%~nxa==%id% set "tikLocation=%%a"
::Finds the name of the parent folder of the previously found folder to get game name, gets saved to variable "game"
for %%a in ("%tikLocation%\..") do set "game=%%~na"
::Writes download code to download.bat, to be called later
::If ticket was found, it will be moved to the game download folder
::If no ticket is found, it will ask for a game name
If not "%tikLocation%"=="" (
echo echo ----------------------------------------------- >> download.bat
echo echo Downloading %game% - %id% >> download.bat
echo echo ----------------------------------------------- >> download.bat
echo nusgrabber.exe %id% >> download.bat
echo echo ----------------------------------------------- >> download.bat
echo echo Grabbing Ticket File >> download.bat
echo echo ----------------------------------------------- >> download.bat
echo copy "%TikLocation%\title.tik" "%id%" >> download.bat
) else (
echo Error: ticket not found. Skipping ticket transfer.
pause
cls
set /P game="Enter game name: "
echo echo ----------------------------------------------- >> download.bat
echo echo Downloading %game% - %id% >> download.bat
echo echo ----------------------------------------------- >> download.bat
echo nusgrabber.exe %id% >> download.bat
)
::Writes folder moving/renaming code to download.bat, to be called later
echo echo ----------------------------------------------- >> download.bat
echo echo Renaming Folder %id% >> download.bat
echo echo ----------------------------------------------- >> download.bat
echo MOVE %id% "install\%game%" >> download.bat
::Changes Title ID and game name to their Updater counterparts
set id=%id:00050000=0005000E%
set game=%game% Update
::Check if user input for automatic update download was yes.
::Input could be y, Y, yes, yeah, or anything starting with "y" and this will return true
if /i %update:~0,1%==y (
::Writes update download code to download.bat, to be called later
echo echo ----------------------------------------------- >> download.bat
echo echo Downloading %game% - %id% >> download.bat
echo echo ----------------------------------------------- >> download.bat
echo nusgrabber.exe %id% >> download.bat
echo echo ----------------------------------------------- >> download.bat
echo echo Renaming Folder %id% >> download.bat
echo echo ----------------------------------------------- >> download.bat
echo if exist %id% MOVE %id% "install\%game%" >> download.bat
)
ENDLOCAL
::Loop back to ask the user for another Title ID
goto setgamelist
:end
::Writes the last bit of code to download.bat for a clean finish
echo echo ----------------------------------------------- >> download.bat
echo echo Downloads Completed! >> download.bat
echo echo ----------------------------------------------- >> download.bat
echo pause >> download.bat
::If install folder doesn't exist, create that folder
::If it does, move everything from within that folder to \GameBackups
if not exist install (
md install
) else (
FOR /d %%i IN (install\*) DO move "%%i" GameBackups
)
::Calls download.bat, which now has the code to download every game and update the user input
call download.bat
https://mega.nz/#!YJlCHS7a!7Nr6I2OCb6m6emZ0PLBqQ5seti4AyU0_gwVXsauOkk8
This version was made to work with NUSGrabber:
http://wupinstaller.com/NUSGrabber.rar
Code:
@echo off
::Set Current Directory, gets saved to variable "nusdir"
cd %~dp0
set nusdir=%~dp0
::Clear download.bat to remove the previous download list and commands
echo. > download.bat
::Create needed directories if they don't already exist
if not exist GameBackups md GameBackups
if not exist tickets (
md tickets
cls
echo "tickets" folder created. Please unzip the tik database from "that iso site" into the tickets folder.
pause
)
::Start of loop to create game download list
:setgamelist
::Make variables created within the loop only last during that loop
SETLOCAL
cls
echo Type -1 to begin downloads, or add more below.
::User input for title ID, gets saved to variable "id"
set /P id="Enter Title ID: "
::Check if user input is -1, and if so exits loop
if "%id%" == "-1" goto end
::User input to automatically download game updates, gets saved to variable "update"
set /p update="Download game updates? (y,n): "
::Attempts to find a folder within \tickets whose name matches the Title ID set earlier
for /d /r "%NusDir%\tickets" %%a in (*) do if /i %%~nxa==%id% set "tikLocation=%%a"
::Finds the name of the parent folder of the previously found folder to get game name, gets saved to variable "game"
for %%a in ("%tikLocation%\..") do set "game=%%~na"
::Writes download code to download.bat, to be called later
::If ticket was found, it will be moved to the game download folder
::If no ticket is found, it will ask for a game name
If not "%tikLocation%"=="" (
echo echo ----------------------------------------------- >> download.bat
echo echo Downloading %game% - %id% >> download.bat
echo echo ----------------------------------------------- >> download.bat
echo java -jar JNUSTool.jar %id% -dlEncrypted >> download.bat
echo echo ----------------------------------------------- >> download.bat
echo echo Grabbing Ticket File >> download.bat
echo echo ----------------------------------------------- >> download.bat
echo copy "%TikLocation%\title.tik" "%id%" >> download.bat
) else (
echo Error: ticket not found. Skipping ticket transfer.
pause
cls
set /P game="Enter game name: "
echo echo ----------------------------------------------- >> download.bat
echo echo Downloading %game% - %id% >> download.bat
echo echo ----------------------------------------------- >> download.bat
echo java -jar JNUSTool.jar %id% -dlEncrypted >> download.bat
)
::Writes folder moving/renaming code to download.bat, to be called later
echo echo ----------------------------------------------- >> download.bat
echo echo Renaming Folder %id% >> download.bat
echo echo ----------------------------------------------- >> download.bat
echo MOVE tmp_%id% "install\%game%" >> download.bat
::Changes Title ID and game name to their Updater counterparts
set id=%id:00050000=0005000E%
set game=%game% Update
::Check if user input for automatic update download was yes.
::Input could be y, Y, yes, yeah, or anything starting with "y" and this will return true
if /i %update:~0,1%==y (
::Writes update download code to download.bat, to be called later
echo echo ----------------------------------------------- >> download.bat
echo echo Downloading %game% - %id% >> download.bat
echo echo ----------------------------------------------- >> download.bat
echo java -jar JNUSTool.jar %id% -dlEncrypted >> download.bat
echo echo ----------------------------------------------- >> download.bat
echo echo Renaming Folder %id% >> download.bat
echo echo ----------------------------------------------- >> download.bat
echo if exist tmp_%id% MOVE tmp_%id% "install\%game%" >> download.bat
)
ENDLOCAL
::Loop back to ask the user for another Title ID
goto setgamelist
:end
::Writes the last bit of code to download.bat for a clean finish
echo echo ----------------------------------------------- >> download.bat
echo echo Downloads Completed! >> download.bat
echo echo ----------------------------------------------- >> download.bat
echo pause >> download.bat
::If install folder doesn't exist, create that folder
::If it does, move everything from within that folder to \GameBackups
if not exist install (
md install
) else (
FOR /d %%i IN (install\*) DO move "%%i" GameBackups
)
::Calls download.bat, which now has the code to download every game and update the user input
call download.bat
https://mega.nz/#!NYNzHZ6a!b0AcfymBdHDMbv-5zyc7xAg_tnlM44n0AsAURhX_b0A
This version was made to work with JNUSTool:
https://gbatemp.net/threads/jnustool-nusgrabber-and-cdecrypt-combined.413179/
It's one of the few ways I've seen to really batch download games + updates.
Last edited by TheCyberQuake,






