Hi
Can anyone tell me if its possible to open a browser and run a specific url /file like .asp or .cfm from the dos prompt ? I am new to the command line and have not been able to find anything that suggests that this can be done. Am I looking in the wrong places?
if you right click on "my computer" and go enviroment,put in a new variable which points to the location of iexplore.exe...something like C:\progra~1\plus\micros~1\iexplore.exe and save it.
You can then call the program from anywhere within the OS.
David
good addition crwpulsar - i was gonna go there, but he said he's new to the command line..in that case its easier to copy the .exe into the existing environment...it will still run anywhere in the OS, and it's just too easy to mess up on accident pbxman
Systems Administrator
Please let Tek-Tips members know their posts were helpful.
Thanks for ur responses ploxman and crwpulsar but I think you misunderstood. I am not trying to open up an .exe, I am trying to open a browser with a url like
Ploxman and cwpulsar, yes you are right, that did do the trick ,my appologies. One further question... is it possible to close the browser say a few secs after I have opened it from the dos prompt ?
This will open a first window to execute the javascript.
This Javascript will open a new window with the URL you want, then after a time out (2 sec here) will close both the windows.
You can add window.blur(); before the setTimeout function to minimize the first window during the process.
I tried what you suggested ThJ It works great however I want the window to automatically close without any input from anyone. Doing this C:\Program Files\Plus!\Microsoft Internet\IEXPLORE.EXE "Javascript:Test=wi
ndow.open('
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.