Jump to content

Recommended Posts

Posted

I have an internal website and there's a link on the site I'm trying to run. The link calls a Batch file. But when I click on the link I'm getting a page can not be displayed. I'm sure the file is in the right place and the url and name is correct.

Does anyone know how I can call this file from the link?

Windows 2003 Server with IIS 6.

Thanks.


Posted

Are you getting an error from the server or your browser? It can be tough to tell sometimes. Please tell us exactly what that error is and describe how it is presented to you.

Have you tested the file to ensure that it works without the server as a variable?

Posted

You can't download batch files by default off IIS6, you have to give it a MIME type first (it won't just guess). Go in IIS admin, whatever site's properties, HTTP headers, MIME types, new, extension: "bat", MIME type either "application/batch" if you want people to download it (or users to run it locally straight from IE) or "text/plain" if you want people to see the batch's content displayed (as text) and copy/paste.

Posted

Incorrect MIME type was my first idea but I thought IIS handled that stuff pretty well by default. Any time I've had MIME issues it has been on Apache. It worked by default in IIS5, right?

Posted
Incorrect MIME type was my first idea but I thought IIS handled that stuff pretty well by default. Any time I've had MIME issues it has been on Apache. It worked by default in IIS5, right?

Yes, the defaults are pretty good, although some stuff is disabled by default for security reasons (understandably). As for IIS5, it did work IIRC, but I don't have a Win2k box around to test, so I can't tell for sure (we hardly ever deploy anything on IIS5 anymore, and we're definitely looking forward to v7!)

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...