| Author |
Message |
wardrich lawl catz r lawlz

 Joined: 14 Sep 2002 Posts: 3361 Location: Ontario Canada
|
Posted: Thu May 03, 2007 4:19 am
Post subject: Here's a quick batch file I wrote up... |
|
|
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 .
Done up as a quick project to learn a bit about batch files. |
|
| Back to top |
|
 |
Ro@m Hamachi Guardian
 Joined: 29 Jun 2003 Posts: 1542 Location: Croatia
|
Posted: Thu May 03, 2007 4:20 am
Post subject: |
|
|
tinman,come and get it......  |
|
| Back to top |
|
 |
wardrich lawl catz r lawlz

 Joined: 14 Sep 2002 Posts: 3361 Location: Ontario Canada
|
Posted: Thu May 03, 2007 4:21 am
Post subject: |
|
|
| His head will explode when he views that source! |
|
| Back to top |
|
 |
Ro@m Hamachi Guardian
 Joined: 29 Jun 2003 Posts: 1542 Location: Croatia
|
Posted: Thu May 03, 2007 4:23 am
Post subject: |
|
|
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 lawl catz r lawlz

 Joined: 14 Sep 2002 Posts: 3361 Location: Ontario Canada
|
Posted: Thu May 03, 2007 4:29 am
Post subject: |
|
|
| 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 Moderator

 Joined: 19 Feb 2006 Posts: 3808 Location: Romania
|
Posted: Thu May 03, 2007 2:33 pm
Post subject: |
|
|
Egh, I'm actually sure we won't be seeing tinman for a long while
But yeah, I second the tinman's head exploding part! |
|
| Back to top |
|
 |
wardrich lawl catz r lawlz

 Joined: 14 Sep 2002 Posts: 3361 Location: Ontario Canada
|
Posted: Thu May 03, 2007 2:37 pm
Post subject: |
|
|
| oh, he actually left? |
|
| Back to top |
|
 |
Larry Laffer Moderator

 Joined: 19 Feb 2006 Posts: 3808 Location: Romania
|
Posted: Thu May 03, 2007 2:42 pm
Post subject: |
|
|
Don't think he left, but if Dogbreath actually emailed this topic to his mom... well
remember that he's 13 |
|
| Back to top |
|
 |
wardrich lawl catz r lawlz

 Joined: 14 Sep 2002 Posts: 3361 Location: Ontario Canada
|
Posted: Thu May 03, 2007 2:57 pm
Post subject: |
|
|
| haha, you think he bought it? |
|
| Back to top |
|
 |
tinman47 Lord of Gaming

 Joined: 24 Feb 2007 Posts: 231
|
Posted: Thu May 03, 2007 5:34 pm
Post subject: |
|
|
I feel so supported.
Oh yeah,nice batch,I studied it,its cool. |
|
| Back to top |
|
 |
wardrich lawl catz r lawlz

 Joined: 14 Sep 2002 Posts: 3361 Location: Ontario Canada
|
Posted: Thu May 03, 2007 5:50 pm
Post subject: |
|
|
hahaha, thanks 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

 Joined: 24 Feb 2007 Posts: 231
|
Posted: Tue Jun 12, 2007 5:50 pm
Post subject: |
|
|
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 Moderator

 Joined: 19 Feb 2006 Posts: 3808 Location: Romania
|
Posted: Wed Jun 13, 2007 3:55 am
Post subject: |
|
|
| 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 lawl catz r lawlz

 Joined: 14 Sep 2002 Posts: 3361 Location: Ontario Canada
|
Posted: Wed Jun 13, 2007 5:18 am
Post subject: |
|
|
| 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 Moderator

 Joined: 19 Feb 2006 Posts: 3808 Location: Romania
|
Posted: Wed Jun 13, 2007 9:54 am
Post subject: |
|
|
As I said, truly inspiring!  |
|
| Back to top |
|
 |
|