Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Downloading and launching an exe

Status
Not open for further replies.

skiflyer

Programmer
Sep 24, 2002
2,213
US
I was always under the impression that when you navigated to a page that ended in .exe it would ask if you wanted to download the file or run it from current location... yet when I try that with a certain page I have, it's actually launching the process on the server.

What the heck is going on and where would I look into these settings?

IIS 4.0 on an NT Server machine.

Thanks,
-Rob
 
skiflyer

Not all .exe files result in a download, it depends if the file was written for the web or not.

As for it launching when it's not supposed to, this is possibly a setting in your browser.

When you encounter a page with an exe file, there is normally a checkbox that allows you to automatically launch it without a prompt in the future.

Hope this helps Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
Actually, in this case it turned out to be a server setting in IIS. The "world" had access to execute files in the directory I was testing in, so the server executed them. Turning that setting off, it instead served it up for download.

A right click will always, of course, circumvent such an issue.

I'm assuming there're also some HTML tags to circumvent the issue.

Either way, thanks for the ideas, I'll be certain to keep them in mind as I deploy this.

-Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top