ralph
8/8/2011 4:35:00 AM
On Mon, 08 Aug 2011 02:05:53 +0200, a <a@inwind.it> wrote:
>because xp has not "msconfig.exe"
>but only the old dos "ipconfig.exe"
>
>and because typing the related parameters
>in the old dos black window is boring
>I created a batch file
>
>but... it doesn't close the black dos window.
>
>How to close it?
>
>note:
>I don't want to right click on the created .bat file
>and set the automated closure by there;
>I want do that programmatically
>
>note2:
>I'm testing it on win98
>and hope it will work on xp
>
>-------- here the simple code: ----------------
>cd c:\windows
>ipconfig /release_all
>ipconfig /renew_all
>exit
>-----------------------------
The key is you need to launch a cmd (the Windows Command Interpreter)
with the "/C" option.
[ Type "cmd /?" in DOS Window to see all the options. ]
The easiest solution, allowing you to 'click something', is simply
creating a Shortcut and provide a command string such as "cmd /c
my.bat"
-ralph