Forum Moderators: coopster & phranque

Message Too Old, No Replies

Content-Type for DOS batch files?

help ... content-type for dos bat file?

         

affter333

3:17 am on Jan 26, 2004 (gmt 0)



which one is correct?
I searched the net and can't find a thing.
need an answer petty bad.

Thanks for your help ..

print "Content-Type: text/plain\n";
print "Content-Disposition: attachment; filename=go.bat\n";

print "Content-Type: text/bat\n";
print "Content-Disposition: attachment; filename=go.bat\n";

mbauser2

4:42 am on Jan 26, 2004 (gmt 0)

10+ Year Member



There is no IANA-registered MIME type for DOS batch files. There isn't even an unofficial one in the Windows registry.

If you're just trying to make an application save the batch file to disk, go with "application/octet-stream", the generic type for applications.

("text/bat" would be so wrong, because batch files are applications, and you didn't put an "x-" in the subtype.)