We block batch files even if there are inside a ZIP.  So yes, renaming is
key.

 

From: [email protected] [mailto:[email protected]]
On Behalf Of Ben Scott
Sent: Thursday, November 07, 2013 7:57 AM
To: [email protected]
Subject: Re: [NTSysADM] accessing . b a t files from an internal IIS site

 

On Thu, Nov 7, 2013 at 8:09 AM, David McSpadden <[email protected]> wrote:
> I can access some . b a t files from chrome but IE9 is turning them into
> _bat files in which they loose their file association and will not open??

  Batch files are widely regarded as "dangerous" and will be blocked by all
sorts of things.

  When distributing batch files or other scripts as bare files (not in a ZIP
or whatever), I recommended renaming them by appending a text file
extension, e.g., "foo.bat.txt".

  Aside from avoided unwanted blocking, it also prevents unexpected
execution, allows them to be viewed without downloading in a browser, and
may clue in the computer to perform end-of-line translation.

-- Ben


Reply via email to