1.

Solve : Close Dos window after program execution?

Answer»

I cannot figure out a way to close the dos WINDOW that remains OPEN after i call a webpage. I am using Windows XP sp2. Any help would be great.I think all you have to do is type "exit" at the end of your script
(no quotes though) tell me if this helps.... try change "call" with "start"
Code: [SELECT]start "" "yoursavepage.html"

"start" can also used to open a file..
hope this helps...
I have the tried the "start" command. I get the same result. I have also tried using an exit at the end of the program after the call to the webpage. As far as I can tell when the call is MADE to the webpage that the active window switchs from the console window to the IExplorer, and the exit command is never read by the program.i am more interested in what you are trying to achieve.I had the same trouble when trying to open a program, with a batch. You MIGHT need a delay to give your page time to open... try add a line before your command line that reads... (ping -n 5 localhost>NUL) this will delay for 5 seconds... you can change the 5 in the line to another number indicating the number of seconds u want to delay...if u are on a dial up it may take longer. It made no difference whether my line started with call or start. if that don't work try the ping line after... so if your line is this (start "" "yoursavepage.html") and it opens your page and won't close after
it opens the page. try


ping -n 5 localhost>NUL
start yoursavepage.html
exit

if that don't work try
start yoursavepage.html
ping -n 5 localhost>NUL
exit



Discussion

No Comment Found