CMD Script: how to close CMD

I created a small command that will allow me to launch Internet Explorer. However, I want to close the small command prompt that appears when starting IE. How can i do this? This is my current code:

"%ProgramFiles%\Internet
Explorer\iexplore.exe"
http://localhost/test.html
PAUSE

I guess if I take a break. Does it close the CMD window when closing IE?

There is also another command that I can use to simply create a command that will allow me to add something to the menu with a small icon, which, in turn, launches the above. It's complicated? Any tutorials that I can use?

Thank you all

+5
source share
5 answers

Use the command start:

start "title" "%ProgramFiles%\Internet Explorer\iexplore.exe" http://www.example.com
+12

&& exit

"%ProgramFiles%\Internet Explorer\iexplore.exe" http://google.co.uk && exit 
+6
@echo off
start "" "%ProgramFiles%\Internet Explorer\iexplore.exe" "http://www.example.com"
exit /b

IE, :

@echo off
start http://www.example.com
exit /b

exit/b win9x IIRC, , Windows , , , :

@echo off
start http://www.example.com
cls
+2

/c, cmd

cmd /c "%ProgramFiles%\InternetExplorer\iexplore.exe" http://localhost/test.html
+1

"" , script , .

0

All Articles