Post: [WIP]Batch script for Backing up, Installing worlds/texturepacks and more
04-25-2011, 04:16 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); This is a very helpful batch script you can execute on your desktop.

It gives you 7 options:

1 - Install world(s)/Backup worlds
2 - Grab a world/Backup worlds
3 - Grab Screenshots
4 - Backup Worlds
5 - Install TexturePack(s)/Backup Texturepacks
6 - Backup TexturePack(s)
7 - Grab Minecraft.jar

save as .bat
    @echo off
title BadP1zza's MC sharing setup
color 80
md install-worlds
md install-texturepacks
md grabbed
md Screenshots
:menu
cls
echo Choose what to do.
echo ----
echo Jobs
echo ----
echo A - Backup Help/Info
echo 1 - Install world(s)/Backup worlds
echo 2 - Grab a world/Backup worlds
echo 3 - Grab Screenshots
echo 4 - Backup Worlds
echo 5 - Install TexturePack(s)/Backup Texturepacks
echo 6 - Backup TexturePack(s)
echo 7 - Grab Minecraft.jar
echo ----
set /p tdd=Job:
goto %tdd%
goto menu
:A
cls
echo Back ups are stored in %appdata%\minecraft\backup
echo To find the most recent backup, show them in order from last modified date.
echo Backups are made in order to make sure you do not lose your hard work.
echo This takes up most of them time it takes to transfer worlds. about 70%.
echo Texturepacks backups are stored in %appdata%\minecraft\backup\tp
echo You can retrieve them the same way as world backups.
pause
goto menu
:1
cls
echo Installing World(s)
md %appdata%\.minecraft\backup
xcopy /e /y /i %appdata%\.minecraft\saves %appdata%\.minecraft\backup\b%random%a%random%d%random%
xcopy /e /y install-worlds %appdata%\.minecraft\saves
goto menu
:2
cls
echo Please choose the world to grab.
set /p tskk=World Name:
md %appdata%\.minecraft\backup
xcopy /e /y /i %appdata%\.minecraft\saves %appdata%\.minecraft\backup\b%random%a%random%d%random%
md %appdata%\.minecraft\saves\%tskk%
xcopy /e /y /i %appdata%\.minecraft\saves\%tskk% grabbed\%tskk%
goto menu
:3
cls
echo Grabbing screenshots.
xcopy /e /y %appdata%\.minecraft\screenshots Screenshots
goto menu
:4
cls
echo Backing Up
md %appdata%\.minecraft\backup
xcopy /e /y /i %appdata%\.minecraft\saves %appdata%\.minecraft\backup\b%random%a%random%d%random%
goto menu
:5
cls
echo Installing TexturePacks
md %appdata%\.minecraft\backup\tp
xcopy /e /y /i %appdata%\.minecraft\texturepacks %appdata%\.minecraft\backup\tp\b%random%a%random%d%random%
xcopy /e /y /i install-texturepacks %appdata%\.minecraft\texturepacks
goto menu
:6
cls
echo Backing Up - TexturePacks
md %appdata%\.minecraft\backup\tp
xcopy /e /y /i %appdata%\.minecraft\texturepacks %appdata%\.minecraft\backup\tp\b%random%a%random%d%random%
goto menu
:7
cls
echo Grabbing Minecraft.jar
xcopy /e /y %appdata%\.minecraft\bin\minecraft.jar grabbed
rmdir grabbed\natives
goto menu


How to use:
1) Start the batch file. It will create 5 folders(Grabbed, install-texturepacks, install-worlds, screenshots)
2) To install a world, paste the world folder into the "install-worlds" folder and type 1 and press enter in the command prompt.
3) To install a texturepack, paste the world folder into the "install-texturepacks" folder and type 5 and press enter in the command prompt.
4) To get all your screenshots, just type 3 and press enter in the command prompt. The pictures will be added to your "screenshots" folder.
5) To share a world with your friends, simply type in 2 and type in the name of the world. It will move the save folder to the "grabbed" folder. Just make it a .zip and send to friends. Smile

I wanted to add features to allow and disallow updates. Helpful if you don't want to update and you want to stay on the version you are on.

This may be in the wrong section.

If you have any ideas or would like to contribute, just post below Smile
(adsbygoogle = window.adsbygoogle || []).push({});
06-03-2011, 02:10 PM #2
Default Avatar
errkal
Guest
hi,

this looks very good and does waht i want mostly. but, could you advise how this could be automated to just take a zip an online world for backup.

thank you
06-06-2011, 04:11 PM #3
FlutterShy
Big Daddy
I dont see why you would need this :/ You can do this out of the .minecraft folder easily.

For 2: Just Drag the world folder into the saves folder inside .minecraft
For 3: Drag the .rar file (of the texture pack) into the texture pack folder inside the .minecraft folder unless the resolution is 32x32 or bigger then you will need the HD patcher.
For 4: Screen shot folder inside .minecraft.
For 5: Just add the world folder to winrar archiver and then you can upload it /send it.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo