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.
Printable View
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.
* BUMP *
* BUMP *
This might helpAdvanced Batch tutorial
The problem basically is that CHOICE isn't included in Win2K onwards.
So you'll want to find a replacement.
Maybe you can write you own in vb.
Right. It doesn't work like this.Quote:
Originally posted by plenderj
The problem basically is that CHOICE isn't included in Win2K onwards.
So you'll want to find a replacement.
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...
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.Quote:
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
Why not using script editor?