Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6550981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:16:53+00:00 2026-05-25T12:16:53+00:00

We are serving static files from a build process where the output files are

  • 0

We are serving static files from a build process where the output files are to be served as application/octet-stream. The problem is that the files extensions are related to their version, so I need:

.000 application/octet-stream
.001 application/octet-stream
…
.100 application/octet-stram
…

Is there a way in IIS7 to add a pattern of extensions or some other way so I don’t have to manually type in 100+ new entries?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T12:16:54+00:00Added an answer on May 25, 2026 at 12:16 pm

    No, there is really no way to specify a regex or pattern for that. I’d suggest scripting it from the command line. See this for the syntax, but for a single mime type something like this should work:

    appcmd set config /section:staticContent /+"[fileExtension=' .000 ', mimeType='application/octet-stream ']" 
    

    So to do it for 100 of them, try this in a windows cmd file:

    @echo off
    FOR /L %%G IN (0,1,100) DO (call :addfile %%G)
    
    :addfile
      if %1 LSS 10 (
         (call :updateconfig 00%1)
      ) else (
        if %1 LSS 100 (
           (call :updateconfig 0%1)
        ) else ( 
           (call :updateconfig %1)
        )
      )
      goto :EOF
    
    :updateconfig
      appcmd set config /section:staticContent /+"[fileExtension=' .%1 ', mimeType='application/octet-stream ']"
      goto :EOF
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was following a startup information from this website. http://thecodinghumanist.com/blog/archives/2011/5/6/serving-static-files-from-node-js however, using his method,
I'm having issues serving out static (image) files from an Azure + MVC 3
I need to build something that starts serving a H.264 encoded video to a
I have a Tapestry application that is serving its page as UTF-8. That is,
In a system that I'm building I want to serve Static files (static HTML
I have a couple of conceptual questions: regarding serving static files (media) in Django
I having trouble serving Django's static admin files on webfaction. Here's how I'm currently
I've been reading articles about speeding up websites by serving static content from a
I've recently read an article http://www.ravelrumba.com/blog/static-cookieless-domain/ about Serving Static Content from a Cookieless Domain
What is better for serving static files of most websites (javascripts, css, images, html):

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.