Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Dos Batch file help  (Read 3302 times)

0 Members and 1 Guest are viewing this topic.

kumla

  • Guest
Dos Batch file help
« on: October 04, 2007, 08:47:55 AM »
I need to create a batch file that will open a command line and run the command "ipconfig /displaydns"
I made one to run "ipconfig /flushdns" and that works fine and the dos window closes after it completes the flush. However with the displaydns I need the dos window to stay open. Any help is appreciated.
I'm just using the batch format to run a dos command.

Kumla

Deerpark



    Egghead
  • Thanked: 1
    Re: Dos Batch file help
    « Reply #1 on: October 04, 2007, 11:43:24 AM »
    use pause in your script.

    Like this
    Code: [Select]
    ipconfig /displaydns
    pause
    Any sufficiently advanced technology is indistinguishable from magic.
    Arthur C. Clarke (1917 - 2008)