Reply
Restart IIS from FireFox? Is there a button?
Old 09-12-2007, 02:13 PM Restart IIS from FireFox? Is there a button?
Learning Newbie's Avatar
Moderator

Latest Blog Post:
What Does This Look Like?
Posts: 4,727
Name: John Alexander
Is there a better way than going to the command prompt, typing

IISRESET
EXIT

And then hitting refresh?
__________________
4 ways to improve the lives of the "bottom billion"

"HEY YOU KIDS GET OFF MY LAWN!" -John McCain
Learning Newbie is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 09-12-2007, 02:53 PM Re: Restart IIS from FireFox? Is there a button?
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
You could theoretically write a VBS or a batch file and execute it using Windows Shell through ASP. I've never really tried it before, though, so I don't know the ins and outs of it.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 09-12-2007, 02:55 PM Re: Restart IIS from FireFox? Is there a button?
Learning Newbie's Avatar
Moderator

Latest Blog Post:
What Does This Look Like?
Posts: 4,727
Name: John Alexander
You think that would work? Triggering an IIS restart from ASP? Because then I could just add a bookmark to that page. I wonder if Microsoft allows that kind of suicide?

If not, can you make FireFox buttons that point at batch files? Or, ideally, that run a batch file then refresh the current page? Now I'm just being greedy.
__________________
4 ways to improve the lives of the "bottom billion"

"HEY YOU KIDS GET OFF MY LAWN!" -John McCain
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 09-12-2007, 02:58 PM Re: Restart IIS from FireFox? Is there a button?
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Well the idea is that the ASP page calls an instance of the Windows Script Host, and then you go from there. Mind you, I never thought it all the way through and I just realized it probably wouldn't work since an IIS restart would probably stop the page from executing any further code and would probably render it useless.

Try it, though. Only way to find stuff out.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 09-12-2007, 05:46 PM Re: Restart IIS from FireFox? Is there a button?
Learning Newbie's Avatar
Moderator

Latest Blog Post:
What Does This Look Like?
Posts: 4,727
Name: John Alexander
Well, I tried making a batch file on the desktop. It works when I double click it, to restart the server. And I can add it to the bookmark toolbar that comes with FireFox. But instead of running the file, it displays it's contents. So I see black text that says "IISRESET".

Next I tried making a bookmark point directly at C:\Windows\System32\iisreset.exe but when I click it, FireFox prompts me to download the file, instead of running it.

Eventually I'll find more time on discovering a quick way to reset the server, than actually doing it.
__________________
4 ways to improve the lives of the "bottom billion"

"HEY YOU KIDS GET OFF MY LAWN!" -John McCain
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 09-14-2007, 01:28 AM Re: Restart IIS from FireFox? Is there a button?
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,025
Name: Forrest Croce
Location: Seattle, WA
You refuse to work in anything but .net, right? When you save the web.config file, IIS will bounce the web application it belongs to. If you give the iis_usr or whatever it is write privileges to that file, you can make a page that's coded to open and close the file when requested by a whitelist of IPs. And then you could bookmark that...?
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 09-14-2007, 02:53 PM Re: Restart IIS from FireFox? Is there a button?
chrishirst's Avatar
Super Moderator

Posts: 11,888
Location: Blackpool. UK
On the IIS administration site that is installed along with IIS there are scripts for stopping and starting each site, maybe you could disect these?

or create a batch file to run IISRESET and call that from a WSH script
see http://support.microsoft.com/kb/202013 for more
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-24-2007, 03:55 PM Re: Restart IIS from FireFox? Is there a button?
Skilled Talker

Posts: 97
Name: Ganesh
Learning Newbie,

You know what I would do. I would create windows app or a simple service and install in the webserver.

This service may look at a file or a table in a database. Create an asp page which can update a value in a file or database table.

In the service or app, add a condition value = something ( like 0) , use the service to issue the iis command and update the flag to 1.

Nice and easy control.
__________________
Gather. Search. Compare. Save on Hotel and Flight Prices @ www.vtrip.info
sri_gan is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Restart IIS from FireFox? Is there a button?
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.16347 seconds with 13 queries