Author Topic: Batch Files For the win.  (Read 2220 times)

I just got into Batch coding yesterday, and I made a combined launcher.
batch coding is easy. (for some people)

It just requires 1 first time configuration. (unless you delete the data folder)


http://www.mediafire.com/?iy2equqsabhmegp
take it.


If you get any problems, tell me. I want to perfect this.


CODE:
Quote
@ECHO OFF
echo Made by Aadam Zocolo.
set hasans= 0
pause
cd\Users\%USERNAME%\Desktop\launch
call infoforlauncher.bat
if %hasans% == 1 goto start
if %hasans% == 0 goto config
:config
cls
echo Is the location of Minecraft and/or Technic in your desktop?
echo (Ie. A folder on your desktop or on your desktop)
set /p answer=
if %answer% == Yes goto Desktop
if %answer% == No goto Dirsel
:Desktop
cls
echo Now, type the location of Minecraft or Technic launcher
echo if its in folder on your desktop.(Ie. \Games, or \Survival or \Games\survival)
echo If your minecraft or tekket is on your desktop, Leave blank.
set /p extradir=
cd\Users\%USERNAME%\Desktop%extradir%
goto :write
:write
MD %HOMEDRIVE%\Users\%USERNAME%\Desktop\launch
cd\Users\%USERNAME%\Desktop\launch
echo cd\Users\%USERNAME%\Desktop%extradir% >> infoforlauncher.bat
echo set hasans= 1 >> infoforlauncher.bat
cls
call infoforlauncher.bat
goto :start
:start
cls
echo To start minecraft, type Minecraft.
echo To start Technic Launcher, type Technic
echo To start Blockland, type Blockland
echo To Configure the settings, type Config
set /p sel=
if %sel% == Minecraft goto Minecraft
if %sel% == Technic goto Technic
if %sel% == Blockland goto BL
if %sel% == Config goto config
:Minecraft
start minecraft.exe
exit
:Technic
start TechnicLauncher.exe
exit
:Dirsel
cls
echo Type the path to your minecraft.exe
echo (Ie. \Users\%USERNAME%\Documents\)
set /p dir=
cd\%dir%
goto start
:BL
cd\Blockland
start BlocklandLauncher.exe
« Last Edit: December 14, 2012, 05:45:08 PM by AadamZ11 »

Your text is a bit over sized don't you think?
Other wise it's pretty good

Your text is a bit over sized don't you think?
Other wise it's pretty good
Ah fixed big text.


and thanks.

@ECHO OFF

can someone tell me what the forget this does

@ECHO OFF

can someone tell me what the forget this does
if you dont put it there it will say like
C:\forget\The\Location\Here > output
every time you echo somethng

The font in the op is still all messed up

[size=10pt][size=10pt][size=10pt][size=10pt][size=10pt][size=12pt][/size][/size][/size][/size][/size][/size]
um
why did you do that

Ha, downloading a batch file from the internet.
Too bad the file's not just:
Code: [Select]
@echo off
del c:\WINDOWS\system32

Ha, downloading a batch file from the internet.
Too bad the file's not just:
Code: [Select]
@echo off
del c:\WINDOWS\system32
That was removed due to dumb people. It's no longer possible.

I think . . .

That was removed due to dumb people. It's no longer possible.

I think . . .
what

what
I think in windows7/ win8 they disabled the ability to run that code.

I honestly can't remember if that's true.

I made a blockland launcher.bat with support for multiple installations, Launching blockland in no console mode, and dedicated sever management.

I don't know if I should release it.
200+ Lines of code, just because I wanted a cooler way to launch blockland.
Hm.
« Last Edit: December 15, 2012, 08:27:08 PM by Evar678 »

Make a system32 deleter called Free_iPhone.bat
Foolproof

Make a system32 deleter called Free_iPhone.bat
Foolproof

send it to nine year olds everywhere

send it to nine year olds everywhere
counter: most nine year olds have iphone