• Choicce

    From Finnigann@VERT/BNB to All on Friday, July 21, 2006 14:51:00
    In Windows ME, I have a program: CHOICE [1]

    But in XP choice no longer comes with the operating system. How do
    people write batch files that must branch without 'CHOICE'?




    [1] Directory of C:\WINDOWS\COMMAND

    CHOICE COM 5,239 06-08-00 5:00p CHOICE.COM

    I guess it's a vestage of DOS 5.0?


    _ _ _____
    __ _ __ _ _ __ _ __ (_) __ _ __ _(_)___ |
    / _` |/ _` | '_ \| '_ \| |/ _` |/ _` | | _| |
    | | | | | | | |_) | |_) | | | | | | | | | |_ |
    |_| |_|_| |_|_.__/| .__/|_|_| |_|_| |_|_| |_|
    \___|


    ... Computer Hacker wanted. Must have own axe.
    --- MultiMail/Win32 v0.46
    þ Synchronet þ Bits-N-Bytes - bnb.dtdns.net / bnb.synchro.net
  • From Dotel@VERT/DARKNESS to Finnigann on Friday, July 21, 2006 21:12:00
    Re: Choicce
    By: Finnigann to All on Fri Jul 21 2006 03:51 pm

    In Windows ME, I have a program: CHOICE [1]

    But in XP choice no longer comes with the operating system. How do
    people write batch files that must branch without 'CHOICE'?




    [1] Directory of C:\WINDOWS\COMMAND

    CHOICE COM 5,239 06-08-00 5:00p CHOICE.COM

    I guess it's a vestage of DOS 5.0?


    _ _ _____
    __ _ __ _ _ __ _ __ (_) __ _ __ _(_)___ |
    / _` |/ _` | '_ \| '_ \| |/ _` |/ _` | | _| |
    | | | | | | | |_) | |_) | | | | | | | | | |_ |
    |_| |_|_| |_|_.__/| .__/|_|_| |_|_| |_|_| |_|
    \___|


    ... Computer Hacker wanted. Must have own axe.

    you can look for a program called 4dos it runs under xp as well. it extends the batch capabilities a TON. I'm pretty sure they have released their old 4dos as freeware now.

    I think the 4 dos equivilint is Choose.exe or ask.ee


    ---
    þ Synchronet þ Darkness BBS - darkness.synchro.net
  • From Belly@VERT/BRAZINET to Dotel on Friday, July 21, 2006 23:23:00
    Re: Choicce
    By: Dotel to Finnigann on Fri Jul 21 2006 10:12 pm

    you can look for a program called 4dos it runs under xp as well. it extends the batch capabilities a TON. I'm pretty sure they have released their old 4dos as freeware now.

    Wow... You just triggered memories that I thought were completely forgotten! I used to use 4dos back then... Cool stuff.


    o
    (O)
    BeLLy


    ---
    þ Synchronet
  • From Mindless Automaton@VERT/ELDRITCH to Finnigann on Saturday, July 22, 2006 00:05:00
    Finnigann wrote:
    In Windows ME, I have a program: CHOICE [1]

    But in XP choice no longer comes with the operating system. How do
    people write batch files that must branch without 'CHOICE'?


    Heh.. so what you are saying is that if you use Windows XP, you no
    longer have a choice? :)

    Copy it from WinME and see if it still works?

    or:

    http://www.computerhope.com/choicehl.htm
    (Particularly the example near the end)


    So you may not have a choice, but now your set! :o

    -Mindless Automaton
    ---
    þ Synchronet þ Eldritch Clockwork BBS
  • From Finnigann@VERT/BNB to Dotel on Saturday, July 22, 2006 07:11:00
    With regards to the social ramifications;
    Dotel wrote to Finnigann <=-

    Re: Choicce
    By: Finnigann to All on Fri Jul 21 2006 03:51 pm

    In Windows ME, I have a program: CHOICE [1]

    But in XP choice no longer comes with the operating system. How do
    people write batch files that must branch without 'CHOICE'?




    [1] Directory of C:\WINDOWS\COMMAND

    CHOICE COM 5,239 06-08-00 5:00p CHOICE.COM

    I guess it's a vestage of DOS 5.0?

    you can look for a program called 4dos it runs under xp as well. it extends the batch capabilities a TON. I'm pretty sure they have
    released their old 4dos as freeware now.

    I think the 4 dos equivilint is Choose.exe or ask.ee



    Got it.

    http://download.jpsoft.com/4dos/4dos.exe

    Thanks.

    _ _ _____
    __ _ __ _ _ __ _ __ (_) __ _ __ _(_)___ |
    / _` |/ _` | '_ \| '_ \| |/ _` |/ _` | | _| |
    | | | | | | | |_) | |_) | | | | | | | | | |_ |
    |_| |_|_| |_|_.__/| .__/|_|_| |_|_| |_|_| |_|
    \___|


    ... Thank the marshmallow god, long may He roast to golden-brown perfection. --- MultiMail/Win32 v0.46
    þ Synchronet þ Bits-N-Bytes - bnb.dtdns.net / bnb.synchro.net
  • From jas hud@VERT/DSTREAM to Finnigann on Saturday, July 22, 2006 21:48:00
    Re: Choicce
    By: Finnigann to All on Fri Jul 21 2006 03:51 pm

    In Windows ME, I have a program: CHOICE [1]

    But in XP choice no longer comes with the operating system. How do
    people write batch files that must branch without 'CHOICE'?


    there are freeware alternatives with more options.
    also, legacy alternatives still work
    OR, use the old choice

    |15 .Ä.Ú Â Â ÂÂ.Ä. ÂÚ¿
    |07-³ ³Ã¿³ ³³ ³³³ ³³ ³À¿-
    |07 `Ä'ÀÙÁÙÁ`\/'Á`Ä'À-ÙÀÙ
    |08+o edge of oblivion bbs þ eob.darktech.org þ NUV þ

    ---
    þ Synchronet þ Data Stream - telnet://dsbbs.net - www.dsbbs.net
  • From jas hud@VERT/DSTREAM to Belly on Saturday, July 22, 2006 21:49:00
    Re: Choicce
    By: Belly to Dotel on Sat Jul 22 2006 12:23 am

    Re: Choicce
    By: Dotel to Finnigann on Fri Jul 21 2006 10:12 pm

    you can look for a program called 4dos it runs under xp as well. it exte the batch capabilities a TON. I'm pretty sure they have released their o 4dos as freeware now.

    Wow... You just triggered memories that I thought were completely forgotten! used to use 4dos back then... Cool stuff.


    o (O) BeLLy


    i still use ndos, but i use cmd /c in a batchfile if the filename needs to be messed with.

    i have some killer batchfiles.

    |15 .Ä.Ú Â Â ÂÂ.Ä. ÂÚ¿
    |07-³ ³Ã¿³ ³³ ³³³ ³³ ³À¿-
    |07 `Ä'ÀÙÁÙÁ`\/'Á`Ä'À-ÙÀÙ
    |08+o edge of oblivion bbs þ eob.darktech.org þ NUV þ

    ---
    þ Synchronet þ Data Stream - telnet://dsbbs.net - www.dsbbs.net
  • From jas hud@VERT/DSTREAM to Mindless Automaton on Saturday, July 22, 2006 21:51:00
    Re: Re: Choicce
    By: Mindless Automaton to Finnigann on Sat Jul 22 2006 01:05 am

    longer have a choice? :)

    Copy it from WinME and see if it still works?

    or:

    http://www.computerhope.com/choicehl.htm (Particularly the example
    near the end)

    i use deltree.exe from win98 still.

    |15 .Ä.Ú Â Â ÂÂ.Ä. ÂÚ¿
    |07-³ ³Ã¿³ ³³ ³³³ ³³ ³À¿-
    |07 `Ä'ÀÙÁÙÁ`\/'Á`Ä'À-ÙÀÙ
    |08+o edge of oblivion bbs þ eob.darktech.org þ NUV þ

    ---
    þ Synchronet þ Data Stream - telnet://dsbbs.net - www.dsbbs.net
  • From The Doctor@VERT/TARDIS to MINDLESS AUTOMATON on Sunday, July 23, 2006 02:31:00
    Finnigann wrote:

    But in XP choice no longer comes with the operating system. How do

    Heh.. so what you are saying is that if you use Windows XP, you no
    longer have a choice? :)

    I was just waiting for someone to realize that x)
    ---
    þ MM 1.1b1 þ Unregistered þ MailMaker - Your Windows offline reader!
    þ Synchronet þ The TARDIS - tardis.redirectme.net
  • From Tcv@VERT/BORING to jas hud on Tuesday, August 01, 2006 17:21:00
    Re: Choicce
    By: jas hud to Belly on Sat Jul 22 2006 09:49 pm

    i still use ndos, but i use cmd /c in a batchfile if the filename needs to b messed with.

    i have some killer batchfiles.

    Long, long time ago I had all kinds of reams-long batch files for different things. The longest one I can remember was was a front end for some BBS -- it had all kinds of errorlevels and what not. It read very much linear.

    Can you really do stuff like that any more?


    ---
    þ Synchronet þ The Parallel BBS * parallel.darktech.org
  • From jas hud@VERT/DSTREAM to Tcv on Wednesday, August 02, 2006 18:09:00
    Re: Choicce
    By: Tcv to jas hud on Tue Aug 01 2006 06:21 pm


    i still use ndos, but i use cmd /c in a batchfile if the filename needs t messed with.

    i have some killer batchfiles.

    Long, long time ago I had all kinds of reams-long batch files for different things. The longest one I can remember was was a front end for some BBS -- i had all kinds of errorlevels and what not. It read very much linear.

    Can you really do stuff like that any more?



    yeah, i still crank out a few good batchfiles when i cant find a program to
    do what i want it to do.

    it's a good thing to know, knowing how to rig up some huge batchfiles can
    come in handy.

    |15 .Ä.Ú Â Â ÂÂ.Ä. ÂÚ¿
    |07-³ ³Ã¿³ ³³ ³³³ ³³ ³À¿-
    |07 `Ä'ÀÙÁÙÁ`\/'Á`Ä'À-ÙÀÙ
    |08+o edge of oblivion bbs þ eob.darktech.org þ NUV þ

    ---
    þ Synchronet þ Data Stream - telnet://dsbbs.net - www.dsbbs.net
  • From Cyclops@VERT/SRBBS to jas hud on Thursday, August 03, 2006 00:47:00
    In a Win32 environment I find it nice to have GCC for Win32 and a nice
    IDE, console mode only stuff. That, and I use VB a lot to do stuff.
    You don't need to create a window in VB. Also, .js and .vbs come in
    extremely handy when you don't want it compiled.

    Its been a LONG time since I cranked out a .bat.

    ---
    þ Synchronet þ Shadow River - shadowriver.homeip.net
  • From Death@VERT/DARKNESS to jas hud on Thursday, August 03, 2006 03:44:00

    it's a good thing to know, knowing how to rig up some huge batchfiles can come in handy.

    Definitly true.. I have a couple of big batchfiles I use for the
    BBS...

    Death



    Home of DarkNet


    ---
    þ Synchronet þ Darkness BBS - darkness.synchro.net
  • From Dotel@VERT/DARKNESS to Death on Thursday, August 03, 2006 21:21:00


    I certinly use them, only mostly bash. Every extrenal program I run
    filters though a massive script

    I know I get questions all the time about how I do things on my bbs.
    Here is a peak



    ##execute.sh version 1.34 7_21_06
    ##See bottom of script for change logs.

    #Define the locations of your files DO NOT INCLUDE TRAILING SLASH /
    clear
    NODEDIR=/home/bbs/node
    BBSDIR=/home/bbs
    SCRIPTDIR=/home/bbs/dos_scripts
    DOSEMUDIR=/home/bbs/dosemu/freedos
    SUBDIR=/home/bbs/subhome

    clear

    if [ "$4" == "" ]
    then
    echo "Configured as"
    echo "nodedir="$NODEDIR
    echo "bbsdir="$BBSDIR
    echo "scriptdir="$SCRIPTDIR
    echo "dosemudir="$DOSEMUDIR
    echo "subdir="$SUBDIR
    echo ""
    echo "No commands passed to execute.sh. Please read Required
    Variables"
    echo ""
    echo "format execute.sh node% user% execute% mode%"
    echo "example execute.sh 1 drewbaker TW2002 DOSEMU"
    echo ""
    echo "Will run script TW2002 in DOSEMU as user drewbaker on
    node 1"
    sleep 3
    exit

    fi

    #Sets Terminal display to be compatable with industry standards. If
    user is
    #running native linux applications and connecting via SSH this will
    have no
    #effect. Display will be set to terminal on client side.
    stty columns 80 line 25


    #VARIABLES REQUIRED TO BE PASSED
    #execute.sh NODE% USER% EXECUTE% MODE%
    # NODE = BBS NODE Number If not needed place a '1' here
    # USER = USER, this is the full account name on BBS. Used in handling
    home directory and drop file creation
    # EXECUTE = Bash script to execute after script converts users. OR
    DOSLAUNCH Variable to pass onto emulator
    # MODE = What mode to operate in. Valid modes
    # NATIVE = No special changes needed. Linux file may be launched
    without specifying home
    # HOMDIR = Creates, manages and uses virtual home directory
    # TARDIR = Same as HOMDIR, only stores files in compress
    tarball, Usefull for large homedir's
    # DOSEMU = Pass and launch clasic dos application.
    # DOSSRV = Pass and launch clasic dos application as background
    service (tradewar alien AI engine).
    # DOSDUM = Pass and launch in dumb terminal dos. (linux shell
    remains loaded while dos executes in background)
    # DOSPAS = Pass and launch in dos. (no door,node, user info is
    passed) All scripts and batch files much be handled internaly in
    dosemu, example would be to run nightly events like tradewars extern

    clear
    #remove reset if display gets messed up when returning to bbs.
    #reset

    echo "Launcher for Non-Multi-Node Doors Version 1.34 By Andrew Baker"
    echo "Loading Personalized Home Directory for $2 on Node $1 running
    $3"
    echo ""
    echo ""
    sleep 1

    if [ -d "$SUBDIR/$2" ]
    then
    echo "The Sub home directory $2 Exists"

    else
    echo "The Sub home directory $2 does not exist. Either
    this is your first visit to StarDoc 134 doors, or you have not visited
    the doors within 90 days. A New account may be created for you."
    echo "Creating your home"
    mkdir $SUBDIR/$2
    sleep 2
    fi

    if [ "$4" == "SHOWHOME" ]
    then
    echo "Press Q to quit"
    ls -C $SUBDIR/$2 | less
    echo ""
    echo "Please wait"
    sleep 2
    fi

    if [ "$4" == "HOMDIR" ]
    then
    USER=$2_STARDOC134
    HOME=$SUBDIR/$2
    echo "Restoring Files (this may take a moment)"
    cp $SUBDIR/$2/* $NODEDIR$1/
    $SCRIPTDIR/$3
    echo "Backing up your files"
    cp $NODEDIR$1/* $SUBDIR/$2/
    rm $SUBDIR/$2/*.sys 2> /dev/null
    rm $SUBDIR/$2/*.def 2> /dev/null
    #rm $SUBDIR/$2/*.bbs 2> /dev/null
    rm $SUBDIR/$2/*.jdt 2> /dev/null
    rm $SUBDIR/$2/*.jdx 2> /dev/null
    rm $SUBDIR/$2/*.jhr 2> /dev/null
    rm $SUBDIR/$2/*.jlr 2> /dev/null
    rm $SUBDIR/$2/*.jir 2> /dev/null
    rm $NODEDIR$1/* 2>/dev/null
    cp $SUBDIR/$2/exitinfo.bbs $NODEDIR$1/exitinfo.bbs 2>
    /dev/null
    HOME=$BBSDIR
    USER=BBS
    fi


    if [ "$4" == "TARDIR" ]
    then
    echo "NOT DEVELOPED YET, USE HOMDIR FOR NOW"
    fi

    if [ "$4" == "NATIVE" ]
    then
    $SCRIPTDIR/$3 $1 $2
    fi


    if [ "$4" == "DOSEMU" ]
    then

    #script assumes bbs is located in $BBSDIR you will need to
    adjust scripts if
    #located elseware.
    #reset users terminal for 80x25, this will pervent dosemu from crashing,
    #or causing problems
    stty columns 80 line 25

    #Display a wait screen for user. When bbs us under high load,
    dosemu may take
    #20-30 seconds to load
    echo "Please Wait. System is loading Legacy emulators. This
    may take a minute"

    #copies node information to the dosemu enviornment. The C
    drive in dos
    cp $NODEDIR$1/ $DOSEMUDIR/ -R

    #This creates a files that will be excecuted in the autoexec
    within the dos box enviornment
    #I know it says tradewars that was just my first program to
    get running. The variables
    #apply to all programs
    echo "Rem TradeWars 2002 Operating Transfer Config" > $DOSEMUDIR/lovar.bat
    echo "SET NODE="$1 >> $DOSEMUDIR/lovar.bat
    echo "SET TWUSER="$2 >> $DOSEMUDIR/lovar.bat
    echo "SET DOOR="$3 >> $DOSEMUDIR/lovar.bat

    #launches dosemu. Notice that there are no variables passed
    directly to dos emu
    #all variables needed are stored in the above echo.
    dosemu

    #Cleans up temporary files used durring door usage
    rm $DOSEMUDIR/node$1 -R

    #Resets display
    #reset -m network:vt100

    fi



    if [ "$4" == "DOSDUM" ]
    then
    echo "Rem TradeWars 2002 Operating Transfer Config" > $DOSEMUDIR/lovar.bat
    echo "Rem SET TWNODE="$1 >> $DOSEMUDIR/lovar.bat
    echo "SET TWUSER="$2 >> $DOSEMUDIR/lovar.bat
    echo "SET DOOR="$3 >> $DOSEMUDIR/lovar.bat
    dosemu -d $3
    fi
    -Dotel
    Sysop of: StarDoc 134 BBS
    Linux Hybrid BBS, 45+ Doors Internet links
    Telnet or SSH2://bbs.doteltech.com

    Beware The Jaws That Bite, for they belong to my attack penguin


    ---
    þ Synchronet þ Darkness BBS - darkness.synchro.net