• Writing a batch file

    From Gert Koefoed Andersen@2:230/150 to All on Fri Sep 3 14:20:54 2010
    Hello All!

    I am on to shall make a start-bat file for a dos windows point program, where the bat file shall coudl ask the user on type in some choice of node number and
    put the digit in to a variable and then go to the next line to check what number the digit have and go to some deal in the file and perform or call another bat file to be started up.

    Type (echo) "type in your choice of node number."
    "Node numbers 38 53 100 150 151 152 153 ?"
    input node
    rem node number is been saved in a variable node
    rem now shall the file check for the digit
    if node =38 goto node38
    if node =53 goto node53
    if node =150 goto node150
    if node =151 goto node151
    if node =152 goto node152
    if node =153 goto node153
    if node =100 goto node100
    goto end
    rem the node work deal
    :node39
    call n38p.bat
    goto end:
    :node150
    call n53p.bat
    goto end
    :node150
    call n150p.bat
    goto end
    ..
    ..
    :end
    type (echo) the file is end and perform fine :)
    rem

    The programs bat fle start shall could work for several nodes in a fido net like net 230, so the new point not have to do some setup config changed before he/she has got a point number and uplink.

    Take care,
    Gert

    - Get the best with linux -

    --- Msged/LNX 6.2.0 (Linux/2.6.33-gentoo-r2 (x86_64))
    * Origin: http://www.kofobbs.dk (2:230/150)