Here's a quick batch file I wrote up...

Discuss popular GCS tools like ZZT, Megazeux and Adventure Game Studio, as well as programming and other topics related to game design.
Post Reply
User avatar
wardrich
"Some Troll"
Posts: 3944
Joined: Sat Sep 14, 2002 9:08 pm
Location: Ontario Canada

Here's a quick batch file I wrote up...

Post by wardrich »

It's not a game, it's just here to end the suffering of people looking at teh soars coads and stuff...

Code: Select all

@ECHO off
cls
:start
ECHO.
ECHO What will you be naming this file? (be sure to include the full path)
ECHO Example: c:\temp.txt
set path=
set /p path=Filename: 
goto banner

:banner
ECHO.
ECHO What font will you be reading this log with?
ECHO 1. Lucida Console
ECHO 2. MS LineDraw (Preferred)
ECHO 3. Other
set choice=
set /p choice=Pick a number.
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='1' goto LUCIDA
if '%choice%'=='2' goto LINEDRAW
if '%choice%'=='3' goto OTHER
ECHO "%choice%" is not valid please try again
ECHO.

goto banner

:LUCIDA
ECHO                                                    +-+    >> %path%
ECHO                                                    +-+    >> %path%
ECHO +-+ +--------+      +---+       +---+ +-----------------+ >> %path%
ECHO ¦ ¦ ¦ ++¦ +--+      ¦ ++¦       ¦   +-+   ¦  O  ¦+ ++¦ ++ >> %path%
ECHO ¦ ¦ ¦ ¦¦¦ ¦+-+ +--+ ¦ ¦¦¦ +--+  ¦ +-+ +-+ ¦ +-+ ¦¦ ¦ ¦ ¦  >> %path%
ECHO ¦ +--+++¦ ++ ¦ +--+ ¦ ++¦ +--+  ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦¦ ¦ ¦ ++ >> %path%
ECHO +------------+      +---+       +-+ +-+ +---+ +-++------+ >> %path%
ECHO.                                                          >> %path%
ECHO Script by wardrich					       >> %path%
ECHO [email protected]                   >> %path%
ECHO version 1.0
goto TITLE

:LINEDRAW
ECHO                                                    ÉÍ»    >> %path% 
ECHO                                                    Èͼ    >> %path%
ECHO ÉÍ» ÉÍÍÍËÍÍÍÍ»      ÉÍÍÍ»       ÉÍÍÍ» ÉÍÍÍËÍÍÍÍÍËÍÍÍËËÍÍ» >> %path%
ECHO º º º É»º ÉÍͼ      º É»º       º   Èͼ   º  O  Ì» ɼº ɼ >> %path%
ECHO º º º ººº ºÉÍ» ÉÍÍ» º ººº ÉÍÍ»  º ÉÍ» ÉÍ» º ÉÍ» ºº º º º  >> %path%
ECHO º ÈÍʻȼº ȼ º ÈÍͼ º ȼº ÈÍͼ  º º º º º º º º ºº º º È» >> %path%
ECHO ÈÍÍÍÍÊÍÍÊÍÍÍͼ      ÈÍÍͼ       Èͼ Èͼ ÈÍÊͼ ÈͼÈÍÊÍÊÍͼ >> %path%
ECHO.                                                          >> %path%
ECHO Script by wardrich					       >> %path%
ECHO [email protected]                   >> %path%
ECHO version 1.0                                               >> %path%
goto TITLE

:OTHER
ECHO File Created with LOG-O-MATIC                             >> %path%
ECHO version 1.0				               >> %path%
ECHO Script by wardrich                                        >> %path%
ECHO [email protected]                   >> %path%
goto TITLE

:TITLE
ECHO.
ECHO.
ECHO What would you like the title of this log to be?  (First line of the output)
set title=
set /p title= Title: 
goto PROMPT

:PROMPT
ECHO.
ECHO What directory would you like to log the contents of?
ECHO **IF THE DIRECTORY CONTAINS SPACES, BE SURE TO PUT IT IN QUOTES**
ECHO ie "c:\program files"
ECHO (Type "0" to quit)
set directory=
set /p directory=Directory: 
if '%directory%'=='' set directory='0'
if '%directory%'=='0' goto END

set headline=
set /p headline=Type a heading for the log of this directory: 
goto OUT


:OUT
ECHO.                                      >> %path%
ECHO.                                      >> %path%
ECHO ------------------------------------- >> %path%
ECHO %title%                               >> %path%
ECHO ------------------------------------- >> %path%
ECHO Created: >> %path%
ECHO   %DATE% >> %path%
ECHO   %TIME% >> %path%
ECHO. >> %path%
ECHO. >> %path%
ECHO. >> %path%
ECHO ---%headline%---           >> %path%
ECHO.                           >> %path%
dir %directory% /B              >> %path%
ECHO -----END-OF-LISTING----    >> %path%
GOTO PROMPT

:END
ECHO Successfully Completed.   >> %path%
Dead simple script. Runs DIR, throws the output in a text file. That way when somebody asks me if I have ---- song, I can send them that and tell them to find it themself :P.

Done up as a quick project to learn a bit about batch files.
User avatar
Ro@m
<i>Hamachi Guardian</i>
Posts: 1556
Joined: Sun Jun 29, 2003 1:34 pm
Location: Croatia

Post by Ro@m »

tinman,come and get it...... :D
Kazer0 wrote:WHO ARE ALL YOU PEOPLE?
User avatar
wardrich
"Some Troll"
Posts: 3944
Joined: Sat Sep 14, 2002 9:08 pm
Location: Ontario Canada

Post by wardrich »

His head will explode when he views that source!
User avatar
Ro@m
<i>Hamachi Guardian</i>
Posts: 1556
Joined: Sun Jun 29, 2003 1:34 pm
Location: Croatia

Post by Ro@m »

Damn,that IS a lot of it,when i remember what we do a programming classes,this is way larger.....
My head could also explode....
Kazer0 wrote:WHO ARE ALL YOU PEOPLE?
User avatar
wardrich
"Some Troll"
Posts: 3944
Joined: Sat Sep 14, 2002 9:08 pm
Location: Ontario Canada

Post by wardrich »

Ro@m wrote:Damn,that IS a lot of it,when i remember what we do a programming classes,this is way larger.....
My head could also explode....
well, there is a bit of bloat in it for the header... but it was my first batch file, and that was the only real way I could think of adding a few somewhat complex procedures in.
User avatar
Larry Laffer
Admin
Admin
Posts: 4143
Joined: Sun Feb 19, 2006 8:06 am
Location: Romania

Post by Larry Laffer »

Egh, I'm actually sure we won't be seeing tinman for a long while :laugh:

But yeah, I second the tinman's head exploding part!
<center>
abyss wrote:I don't even know if starcraft 1 was a windows or dos games.
</center>

ModBot™ - Faster than the speed of spam!(and always taking it to where it belongs!)
User avatar
wardrich
"Some Troll"
Posts: 3944
Joined: Sat Sep 14, 2002 9:08 pm
Location: Ontario Canada

Post by wardrich »

oh, he actually left?
User avatar
Larry Laffer
Admin
Admin
Posts: 4143
Joined: Sun Feb 19, 2006 8:06 am
Location: Romania

Post by Larry Laffer »

Don't think he left, but if Dogbreath actually emailed this topic to his mom... well :rolleyes:


remember that he's 13
<center>
abyss wrote:I don't even know if starcraft 1 was a windows or dos games.
</center>

ModBot™ - Faster than the speed of spam!(and always taking it to where it belongs!)
User avatar
wardrich
"Some Troll"
Posts: 3944
Joined: Sat Sep 14, 2002 9:08 pm
Location: Ontario Canada

Post by wardrich »

haha, you think he bought it?
tinman47
Lord of Gaming
Lord of Gaming
Posts: 230
Joined: Sat Feb 24, 2007 1:07 pm

Post by tinman47 »

I feel so supported. :boring:

Oh yeah,nice batch,I studied it,its cool.
User avatar
wardrich
"Some Troll"
Posts: 3944
Joined: Sat Sep 14, 2002 9:08 pm
Location: Ontario Canada

Post by wardrich »

hahaha, thanks :D Feel free to give it a try. The logo looks way prettier if you have MS LineDraw installed
tinman47
Lord of Gaming
Lord of Gaming
Posts: 230
Joined: Sat Feb 24, 2007 1:07 pm

Post by tinman47 »

Heres a Batch I wrote up in 2 minutes.

Code: Select all

@echo off
&#58;STARTUP
title DB-Text v0.10
color 0A
cls
rem --INPUT HERE--
set INPUTcom="DBCON# "
goto&#58;STARTUP
A sample of the DB-Text Interpreter Interface.
User avatar
Larry Laffer
Admin
Admin
Posts: 4143
Joined: Sun Feb 19, 2006 8:06 am
Location: Romania

Post by Larry Laffer »

WoW! That's truly bodacious! I'm feeling so inspired to start writing a new OS in Batch, thank you Tinman!
<center>
abyss wrote:I don't even know if starcraft 1 was a windows or dos games.
</center>

ModBot™ - Faster than the speed of spam!(and always taking it to where it belongs!)
User avatar
wardrich
"Some Troll"
Posts: 3944
Joined: Sat Sep 14, 2002 9:08 pm
Location: Ontario Canada

Post by wardrich »

tinman47 wrote:Heres a Batch I wrote up in 2 minutes.

Code: Select all

@echo off
&#58;STARTUP
title DB-Text v0.10
color 0A
cls
rem --INPUT HERE--
set INPUTcom="DBCON# "
goto&#58;STARTUP
A sample of the DB-Text Interpreter Interface.

That really doesn't explain anything... lol.

ps: Larry, I can't believe you said "bodacious". hah
User avatar
Larry Laffer
Admin
Admin
Posts: 4143
Joined: Sun Feb 19, 2006 8:06 am
Location: Romania

Post by Larry Laffer »

As I said, truly inspiring! :P
<center>
abyss wrote:I don't even know if starcraft 1 was a windows or dos games.
</center>

ModBot™ - Faster than the speed of spam!(and always taking it to where it belongs!)
tinman47
Lord of Gaming
Lord of Gaming
Posts: 230
Joined: Sat Feb 24, 2007 1:07 pm

Post by tinman47 »

:jester: As I said,TINY,TINY,TINY SCRIPT.
User avatar
wardrich
"Some Troll"
Posts: 3944
Joined: Sat Sep 14, 2002 9:08 pm
Location: Ontario Canada

Post by wardrich »

It doesn't even do anything useful...
Post Reply