Matt Heyse very kindly posted a long comment explaining how to get round the problems about Running JavaScript Batch Files on Windows I posted on before. It turns out that you need to define a new "script engine" and link it to the file extension you are interested in. Other people want to do other variations too, as Matt describes:
Why do all this.... Well we use VBscripting in our new Active Directory Domain.
But to stop the thousands .vbs viruses we had made the HLCR\.vbs(default)="NORUN". This stops all .vbs programs (we didn't have any). But with the new need for .vbs scripts we had to reactivate it, and thus allow in viruses too. Instead we made up an extension as described above, and kept .vbs broken.
All of our vbs scripts have the new extension and work great, and .vbs virus still can't execute.
Thanks for the info Matt.
All content is
Copyright (c) 2010 Jorgen Thelin. All rights reserved.
The opinions expressed here represent my own views
and not necessarily those of my current, prior or future employer(s).
Content is provided "as-is", without any representations or warrenties of any kind.
Contents of the Weblog Feed are
licensed under a
Creative Commons License.