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 322257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:55:19+00:00 2026-05-12T08:55:19+00:00

I need to open a *.bat file in a popup window. The way i

  • 0

I need to open a *.bat file in a popup window. The way i do that is i open the popup window, which has a url set to the action of the downloading service.

The downloading service returns the following headers:

192.168.000.195.08080-192.168.000.201.52131: HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Disposition: inline; filename="version.bat"
Content-Type: text/plain
Content-Encoding: gzip
Vary: Accept-Encoding
Date: Tue, 11 Aug 2009 14:54:09 GMT
Connection: close

At this point, all browsers that arent IE display the bat in the popup window, while IE 7 closes the popup immediately!

Question: what content-type should i return in order for IE to open the bat file in the popup (not present a download prompt)

  • 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-12T08:55:20+00:00Added an answer on May 12, 2026 at 8:55 am

    Most of the time IE simply ignores the content-type and just goes for the file extension to figure out what it should do. I do not think you can circumvent this.

    Maybe you should try setting it to text/html or something similar (text/xml) that really just has to be displayed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Window .bat file with DOS commands that involve REM, MKDIR, ECHO,
I need to execute aspnet_compiler from a bat file that I maintain to automate
We need to open a word document which is located on a server on
I need to open a log file for writing. Trouble is, many things may
I need to open a new window from code-behind on post-back if a specific
I need to open documents in the WebBrowser control (SL 4) which is located
My university has quite a lot files (like past papers etc) which I need
I have a C# program that needs to spawn a .BAT command file during
Newbie to windows scripting. I need help running the .bat file on the command
I need to set up the delivery of a program installer. This program has

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.