homepage Welcome to WebmasterWorld Guest from 54.226.173.169
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Home / Forums Index / Browsers / Firefox Browser Usage and Support
Forum Library, Charter, Moderators: incrediBILL

Firefox Browser Usage and Support Forum

    
shutting down firefox/IE from the command-line
how to?
macdar




msg:1587893
 12:45 pm on Mar 8, 2006 (gmt 0)

Hello,

I want to run scheduled tasks on a windows machine on hourly basis. This task should run some scripts in firefox or IE.

this guy loads the script:
"C:\Program Files\Mozilla Firefox\firefox.exe" http://localhost/cron.php
and works fine..

But, can you guys tell me what's the command-line to shut down the firefox or IE browser browser from the command line?

Thanks.

[edited by: encyclo at 1:26 pm (utc) on Mar. 8, 2006]
[edit reason] delinked [/edit]

 

BlobFisk




msg:1587894
 5:11 pm on Mar 8, 2006 (gmt 0)

Interesting one. Sounds like you need to use something like pskill - but you'll need to know the PID....

Frank_Rizzo




msg:1587895
 5:18 pm on Mar 8, 2006 (gmt 0)

You may want to consider a macro script such as provided by autohotkey.

You can set a script to open a window, wait a while and then close it, or close it after a certain response. This one starts ie, waits 5 seconds and then closes the window even if something else took focus in between.

#Persistent
winset,alwaysontop,on
run, iexplore.exe htp: // localhost/cron.php
sleep,5000
WinActivate,My Cron Results Page #match the page Title here
WinClose,My Cron Results Page #match the page Title here

bull




msg:1587896
 9:15 pm on Mar 8, 2006 (gmt 0)

Using the Command Line Process Viewer/Killer/Suspender for Windows NT/2000/XP (type this into your favorite search engine), you could simply kill the process with "process -k firefox.exe" or "process -k iexplore.exe"

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Browsers / Firefox Browser Usage and Support
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved