Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23

Thread: Yet Another Batch File Tutorial

  1. #11
    Senior Member
    Join Date
    Nov 2001
    Location
    Ireland
    Posts
    734
    Thanks Ennis. When I saw you call me Declan, I just kind of froze and then I remember that I have posted my website on my profile and it has just about everything about me on that.

    Let's abolish the use of handles
    Yours in bycot,
    Jethro "Declan" Jones

  2. #12
    Junior Member
    Join Date
    Feb 2002
    Posts
    29
    Really nice post, jethro!! Thanx for good info.
    Can I get out of this prison?
    Can I stay this prison forever?

  3. #13
    Senior Member
    Join Date
    Sep 2001
    Posts
    535
    hey that was greeeeeeeeeeeeeeeeeeat post... i learned many things thanks to jetro..

    intruder...
    A laptop, internet connection and beer.

  4. #14
    Banned
    Join Date
    Sep 2001
    Posts
    2,810
    Hey I checked out the ol site, nice stuff jethro!

  5. #15

    Good post actually helps someone instead of ff;aming them.

    Great post. Some people are still responsibe here on ao. I save the tutorial for later use. I have been working on batch, but I was in the fog on a few commands. Thanks for the help.

  6. #16
    Nice post...although you could get rid of the blanks and get rid of a few "goto's"...Nice tutorial,and I agree that ME clouds your mind(in fact ME sucks),that's my opinion anyhow!

  7. #17
    Junior Member
    Join Date
    Feb 2002
    Posts
    27
    Ah Nostalgia!! And a good tutorial too. I needed to brush up on some of the stuff myself. Hope we get some more postings in this vein.

    DA007

  8. #18
    Senior Member
    Join Date
    Feb 2002
    Posts
    120
    Wow,
    Its really been a while for Batch, but I think it is still being used quite a bit for as old as it is. Dos and all, you know.
    \"To follow the path:
    look to the master,
    follow the master,
    walk with the master,
    see through the master,
    become the master.\"
    -Unknown

  9. #19
    Junior Member
    Join Date
    Aug 2003
    Posts
    4
    ok this is what i made ....

    @echo off

    cls

    rem This is a remark.. eh.. hello?
    rem thanks to jethro ... i used his program as a base

    echo Pressing CTRL+C cancels theis batch file program
    echo Where do you want to go today? (tm)

    echo 1) Give me a list of what in the amx forlder
    echo 2) Give me a list of what in the dlls forlder
    echo 3) Give me a list of what in the examples forlder
    echo 4) Give me a list of what in the plugins forlder
    echo 5) Give me a list of what in the logs forlder
    echo 6) Give me a list of what in the compiled forlder
    echo 7) Give me a list of what in the include forlder
    echo 8) Send Dygear an email
    echo 9) Go to amxmod.net

    echo.

    choice /c:123456789 Make your selection now:

    IF ERRORLEVEL 9 goto amxmod
    IF ERRORLEVEL 8 goto emailDYGEAR
    IF ERRORLEVEL 7 goto include
    IF ERRORLEVEL 6 goto compiled
    IF ERRORLEVEL 5 goto logs
    IF ERRORLEVEL 4 goto plugins
    IF ERRORLEVEL 3 goto examples
    IF ERRORLEVEL 2 goto dlls
    IF ERRORLEVEL 1 goto amx

    goto end

    :amx
    ECHO This program was created by Dygear
    ECHO go to amxmod.net for some fun ...
    ECHO this will make a file in your amx forlder amx.txt
    cd C:\Sierra\Counter-Strike\cstrike\addons\amx
    dir > amx.txt
    PAUSE
    goto end

    :dlls
    ECHO This program was created by Dygear
    ECHO go to amxmod.net for some fun ...
    ECHO this will make a file in your dlls forlder dlls.txt
    cd C:\Sierra\Counter-Strike\cstrike\addons\amx\dlls
    dir > dlls.txt
    PAUSE
    goto end

    :examples
    ECHO This program was created by Dygear
    ECHO go to amxmod.net for some fun ...
    ECHO this will make a file in your examples forlder examples.txt
    cd C:\Sierra\Counter-Strike\cstrike\addons\amx\examples
    dir > examples.txt
    PAUSE
    goto end

    :plugins
    ECHO This program was created by Dygear
    ECHO go to amxmod.net for some fun ...
    ECHO this will make a file in your plugins forlder called plugins.txt
    cd C:\Sierra\Counter-Strike\cstrike\addons\amx\plugins
    dir *.amx > plugins.txt
    PAUSE
    goto end

    :logs
    ECHO This program was created by Dygear
    ECHO go to amxmod.net for some fun ...
    ECHO this will make a file in your logs forlder called logs.txt
    cd C:\Sierra\Counter-Strike\cstrike\addons\amx\logs
    dir > logs.txt
    PAUSE
    goto end

    :compiled
    ECHO This program was created by Dygear
    ECHO go to amxmod.net for some fun ...
    ECHO this will make a file in your compiled forlder called compiled.txt
    cd C:\Sierra\Counter-Strike\cstrike\addons\amx\examples\compiled
    dir > compiled.txt
    PAUSE
    goto end

    :include
    ECHO This program was created by Dygear
    ECHO go to amxmod.net for some fun ...
    ECHO this will make a file in your include forlder called include.txt
    cd C:\Sierra\Counter-Strike\cstrike\addons\amx\examples\include
    dir > include.txt
    PAUSE
    goto end

    :emailDYGEAR
    start mailto:DYGEAR@AOL.COM
    goto end

    :amxmod
    start http://www.amxmod.net
    goto end

    :end
    pause
    echo Thank you for using my program
    echo The end

    ... and it allways comes up with unknow command choice ... i am using windows XP

  10. #20
    0_o Mastermind keezel's Avatar
    Join Date
    Jun 2003
    Posts
    1,024
    dude.....this post has been dead for a year and a half now....please don't drag up old stuff (unless it's for personal use/reference of course).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •