Thanks for the suggestion. I do not have any @language directives in my scripts prior to passing them through the windows script encoder. The windows script encoder adds the @language directive to the encoded file because the output of the windows script encoder is an "encoded" VBScript file.
At the top of any encoded file, you will find "<% @ LANGUAGE = VBScript.Encode %>"
I also thought about removing the directive afterwards, but according to the documentation on the windows script encoder (
Documentation), if any modifications are made to the encoded file, it will not decode properly --
"After a script is encoded, changing any part of the resulting file will render it inoperable, thus ensuring the absolute integrity of your encoded script." -Microsoft
Ben Roberts
Azalea Technology, LLC.