DOS Games Message Board
DOS Games Discussion
A message board to talk about DOS games, get help, and find old games.
Do NOT post warez or abandonware requests please
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
NEW! DOSGames.com has been massively upgraded to v2.0 with TONS of new features!
Check out the new design and dozens of new features including online play!


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

 
Post new topic   Reply to topic    DOS Games Discussion Forum Index -> Game Creation
Author Message
wardrich
"Some Troll"


Offline
Joined: 14 Sep 2002
Posts: 3940
Location: Ontario Canada

PostPosted: Thu May 03, 2007 4:19 am     Post subject: Here's a quick batch file I wrote up... Reply with quote

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

Code:

@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 richard.ward1@mycampus.durhamcollege.ca                   >> %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 richard.ward1@mycampus.durhamcollege.ca                   >> %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 richard.ward1@mycampus.durhamcollege.ca                   >> %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 Tbbbbbth!.

Done up as a quick project to learn a bit about batch files.
Back to top
Ro@m
Hamachi Guardian


Offline
Joined: 29 Jun 2003
Posts: 1556
Location: Croatia

PostPosted: Thu May 03, 2007 4:20 am     Post subject: Reply with quote

tinman,come and get it...... Shit-Eating Grin
Back to top
wardrich
"Some Troll"


Offline
Joined: 14 Sep 2002
Posts: 3940
Location: Ontario Canada

PostPosted: Thu May 03, 2007 4:21 am     Post subject: Reply with quote

His head will explode when he views that source!
Back to top
Ro@m
Hamachi Guardian


Offline
Joined: 29 Jun 2003
Posts: 1556
Location: Croatia

PostPosted: Thu May 03, 2007 4:23 am     Post subject: Reply with quote

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....
Back to top
wardrich
"Some Troll"


Offline
Joined: 14 Sep 2002
Posts: 3940
Location: Ontario Canada

PostPosted: Thu May 03, 2007 4:29 am     Post subject: Reply with quote

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.
Back to top
Larry Laffer
Admin
Admin


Offline
Joined: 19 Feb 2006
Posts: 4143
Location: Romania

PostPosted: Thu May 03, 2007 2:33 pm     Post subject: Reply with quote

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

But yeah, I second the tinman's head exploding part!
Back to top
wardrich
"Some Troll"


Offline
Joined: 14 Sep 2002
Posts: 3940
Location: Ontario Canada

PostPosted: Thu May 03, 2007 2:37 pm     Post subject: Reply with quote

oh, he actually left?
Back to top
Larry Laffer
Admin
Admin


Offline
Joined: 19 Feb 2006
Posts: 4143
Location: Romania

PostPosted: Thu May 03, 2007 2:42 pm     Post subject: Reply with quote

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


remember that he's 13
Back to top
wardrich
"Some Troll"


Offline
Joined: 14 Sep 2002
Posts: 3940
Location: Ontario Canada

PostPosted: Thu May 03, 2007 2:57 pm     Post subject: Reply with quote

haha, you think he bought it?
Back to top
tinman47
Lord of Gaming
Lord of Gaming


Offline
Joined: 24 Feb 2007
Posts: 230

PostPosted: Thu May 03, 2007 5:34 pm     Post subject: Reply with quote

I feel so supported. Bored

Oh yeah,nice batch,I studied it,its cool.
Back to top
wardrich
"Some Troll"


Offline
Joined: 14 Sep 2002
Posts: 3940
Location: Ontario Canada

PostPosted: Thu May 03, 2007 5:50 pm     Post subject: Reply with quote

hahaha, thanks Shit-Eating Grin Feel free to give it a try. The logo looks way prettier if you have MS LineDraw installed
Back to top
tinman47
Lord of Gaming
Lord of Gaming


Offline
Joined: 24 Feb 2007
Posts: 230

PostPosted: Tue Jun 12, 2007 5:50 pm     Post subject: Reply with quote

Heres a Batch I wrote up in 2 minutes.

Code:
@echo off
:STARTUP
title DB-Text v0.10
color 0A
cls
rem --INPUT HERE--
set INPUTcom="DBCON# "
goto:STARTUP


A sample of the DB-Text Interpreter Interface.
Back to top
Larry Laffer
Admin
Admin


Offline
Joined: 19 Feb 2006
Posts: 4143
Location: Romania

PostPosted: Wed Jun 13, 2007 3:55 am     Post subject: Reply with quote

WoW! That's truly bodacious! I'm feeling so inspired to start writing a new OS in Batch, thank you Tinman!
Back to top
wardrich
"Some Troll"


Offline
Joined: 14 Sep 2002
Posts: 3940
Location: Ontario Canada

PostPosted: Wed Jun 13, 2007 5:18 am     Post subject: Reply with quote

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

Code:
@echo off
:STARTUP
title DB-Text v0.10
color 0A
cls
rem --INPUT HERE--
set INPUTcom="DBCON# "
goto: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
Back to top
Larry Laffer
Admin
Admin


Offline
Joined: 19 Feb 2006
Posts: 4143
Location: Romania

PostPosted: Wed Jun 13, 2007 9:54 am     Post subject: Reply with quote

As I said, truly inspiring! Tbbbbbth!
Back to top
tinman47
Lord of Gaming
Lord of Gaming


Offline
Joined: 24 Feb 2007
Posts: 230

PostPosted: Thu Jun 28, 2007 11:45 am     Post subject: Reply with quote

Joking As I said,TINY,TINY,TINY SCRIPT.
Back to top
wardrich
"Some Troll"


Offline
Joined: 14 Sep 2002
Posts: 3940
Location: Ontario Canada

PostPosted: Fri Jun 29, 2007 1:47 am     Post subject: Reply with quote

It doesn't even do anything useful...
Back to top
Display posts from previous:   
Post new topic   Reply to topic    DOS Games Discussion Forum Index -> Game Creation All times are GMT - 5 Hours
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group and Ask an Expert
Also powered by Darren and the other admin and mods' hard work! ;)