Results 1 to 10 of 10

Thread: Need help with DOS BATCH File...

  1. #1

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695

    Thumbs down Need help with DOS BATCH File...

    I want to make a DOS BATCH file which asks for confirmation upon running.

    When I press Y or y it executes ipconfig /release command or just quit.

    Any idea.

  2. #2

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695
    * BUMP *

  3. #3

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695
    * BUMP *

  4. #4
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611
    This might helpAdvanced Batch tutorial

  5. #5
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    The problem basically is that CHOICE isn't included in Win2K onwards.
    So you'll want to find a replacement.
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  6. #6
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611
    Maybe you can write you own in vb.

  7. #7

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695
    Originally posted by plenderj
    The problem basically is that CHOICE isn't included in Win2K onwards.
    So you'll want to find a replacement.
    Right. It doesn't work like this.

    ECHO ...IPCONFIG...
    ECHO -----------------
    ECHO 1.../ALL
    ECHO 2.../RELEASE
    ECHO 3.../RENEW
    ECHO X...Exit
    CHOICE "Please select one option..." /C:123X /N
    IF ERRORLEVEL 4 ipconfig /all
    IF NOT ERRORLEVEL 4 IF ERRORLEVEL 3 ipconfig /release
    IF NOT ERRORLEVEL 3 IF ERRORLEVEL 2 ipconfig /renew
    IF NOT ERRORLEVEL 2 IF ERRORLEVEL 1 GOTO END_BAT
    :END_BAT

    Not working...

  8. #8
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Check out the reply to this thread at the bottom of the page:
    http://www.computerseasy.com/easydos/messages/1827.html

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  9. #9

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695
    Originally posted by alex_read
    Check out the reply to this thread at the bottom of the page:
    http://www.computerseasy.com/easydos/messages/1827.html
    Thanks for that...Appreciate it.

  10. #10
    Fanatic Member Mad Compie's Avatar
    Join Date
    Aug 2000
    Location
    Kuurne (Belgium)
    Posts
    553

    Unhappy

    Why not using script editor?
    * I AM *

Posting Permissions

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



Click Here to Expand Forum to Full Width