12-19-2004, 06:27 AM -
Rather than modifying the functionality of a command line designed for a GUI, couldn't you simply use the tremendous flexibility already there to create an alias to do the job for you?
All you'd need to do is create an alias as I've shown below in the attached image. Then, when you type ipconfig2 into your Command Line you'll get a command window, the results of an ipconfig /all and a cursor at a command prompt, awaiting your attention!
The secret is the /K switch for cmd.exe. It tells the command processor to carry out the command specified but remain open once it has completed.
All you'd need to do is create an alias as I've shown below in the attached image. Then, when you type ipconfig2 into your Command Line you'll get a command window, the results of an ipconfig /all and a cursor at a command prompt, awaiting your attention!
The secret is the /K switch for cmd.exe. It tells the command processor to carry out the command specified but remain open once it has completed.
Back once again...