« Previous Next »

Answered Thread: Running *.bat file from http-link doesn't work

Last post 11-03-2009 3:56 AM by Sommerzeit. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 11-02-2009, 3:31 AM

    Running *.bat file from http-link doesn't work

    Hi there,

    i'm trying to open a hyperlink relating to an *.bat-file in my IIS7-Standard-root. The IE is telling me:

    404 - File or Directory not found

    With IIS6 there was no Problem to open this file with this hyperlink. other files like *.exe or *.zip are no problem.
    Why can't i run this file?

    Thanks for your help,
    Peter

  • 11-02-2009, 5:16 AM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,433

    Re: Running *.bat file from http-link doesn't work

    Hi Peter,

    IIS 7 has a lot more 404 sub status, so please take a look at IIS logs and find out the exact errors,

    http://support.microsoft.com/kb/943891

    Regards,

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 11-02-2009, 8:47 AM In reply to

    Re: Running *.bat file from http-link doesn't work

    Hi lextm,

    thanks for your answer. May you can help me.

    81. view trace Warning +SECURITY_DENIED_BY_MIMEMAP 
    82. view trace Warning +MODULE_SET_RESPONSE_ERROR_STATUS  StaticFileModule

    Regards and Thanks,
    Peter

  • 11-02-2009, 12:33 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 6:13 PM
    • Redmond, WA
    • Posts 2,343

    Answered Re: Running *.bat file from http-link doesn't work

    You need to add a mime-map entry for .bat to allow those files to be downloaded.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 11-02-2009, 8:46 PM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,433

    Answered Re: Running *.bat file from http-link doesn't work

    Anil's suggestion is right. You can check point 2 under resolution in this KB article,

    http://support.microsoft.com/kb/942032/


     

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 11-03-2009, 3:56 AM In reply to

    Re: Running *.bat file from http-link doesn't work

    Hello lextm and anilr,

    thank you for your help - now it works.

    Regards,
    Peter

Page 1 of 1 (6 items)
Microsoft Communities