Command line keeps "dos" windows opened ?
Started by txl


Rate this topic
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5


6 posts in this topic
HorusUK
Senior Member
****


0
458 posts 40 threads Joined: Dec 2003
12-19-2004, 06:27 AM -
#2
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.


Attached Files Thumbnail(s)
   
Back once again...


Messages In This Thread
[No subject] - by HorusUK - 12-19-2004, 06:27 AM
[No subject] - by txl - 12-19-2004, 07:48 AM
[No subject] - by txl - 12-19-2004, 01:38 PM
[No subject] - by Yuri Kobets - 12-19-2004, 02:20 PM
[No subject] - by txl - 12-20-2004, 01:52 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)