Only reply by newsgroup. I do not do technical support via email. Any
<waynea@tek.com> wrote in message
news:1102982877.148800.189070@z14g2000cwz.googlegroups.com...
> Hi Jonathon -
> I followed your instructions and added MIME extensions for .bat,
> .cmd, and .xnk. It worked for the .xnk extension.
>
> However, I still receive the same 404 error when I click on a test .cmd
> or .bat file. I can see the file because 'directory browsing' is on.
> However, when I click on the .cmd or .bat file, I'm still denied
> access. Any other suggestions would be greatly appreciated. I too am
> using Windows 2003 Server and IIS6.
>
>
> Thanks!
>
>
> Jonathan Maltz [MS-MVP] wrote:
>> Hi,
>>
>> It looks like you have some terms confused. A web service extension
> allows
>> IIS to use an application to process a file on the server (like
> allowing
>> ASP, in order to have .asp files processed by the ASP
> compiler/server).
>> What you want is a MIME Type setting in order to serve all .bat files
>>
>> In the IIS Manager, expand the computer's name, and the "Web Sites"
> folder,
>> then right-click the website which you would like to allow .bat files
> to be
>> served on, and select "Properties". Alternatively, you can right
> click on
>> the "Web Sites" folder and select "Properties" to apply these
> settings to
>> all of the websites hosted on the computer, instead of applying the
> settings
>> website by website.
>>
>> In the Properties screen, click on the "HTTP Headers" tab. On the
> bottom of
>> this property page, click the "MIME Types." button. A list of the
> custom
>> MIME types set on this computer will now be displayed. On the right
> side of
>> the MIME type window click the "New." button. Since you want to
> allow .bat
>> sites to be served, type the extension ".bat" (without the quotes)
> into the
>> first text box. In the "MIME type" text box, type "text/plain"
> (without the
>> quotes) and press the "OK" button on both of the dialogs, and "Apply"
> on the
>> Properties window.
>>
>> --
>> --Jonathan Maltz [Microsoft MVP - Windows Server - IIS, Virtual PC]
>>
http://www.visualwin.com - A Windows Server 2003 visual, step-by-step
>> tutorial site :-)
>>
http://vpc.visualwin.com - Does <insert OS name> work on VPC 2004?
> Find out
>> here
>> Only reply by newsgroup. I do not do technical support via email.
> Any
>> emails I have not authorized are deleted before I see them.
>>
>>
>> "Steve Ricketts" <steve@velocedge.com> wrote in message
>> news:OetgjXovEHA.3416@TK2MSFTNGP09.phx.gbl...
>> > We have an application that creates potentially 1,000's of unique
> .bat
>> > files
>> > in a Virtual Directory based on user and site information. When
> the .asp
>> > is
>> > called, the File Scripting Object creates a .bat file based on
> information
>> > about the user and places it in the physical location referenced by
> the
>> > Virtual Directly. The .asp then creates a link to that file so the
> user
>> > can
>> > click on it and open the .bat file. With the move to Server 2003,
> IIS 6.0
>> > is giving a 404 error when that link is referenced, and obviously
> it
>> > exists
>> > so it's not recognizing the extension.
>> >
>> > I'm aware that IIS 6.0 needs to know the extensions of a file
> before it
>> > will
>> > recognize them and that you can identify extentions in the Internet
>> > Information Services Manager by defining a new Web Service
> Extension, but
>> > only for a specific file.
>> >
>> > Is there any way to allow the downloading of all .bat files?
>> >
>> > Thanks,
>> >
>> > Steve Ricketts
>> >
>> >
>