Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • VBScript support might be disabled by security settings or group policies. Also, the question wasn't about VBScript; it was about batch files. Answer the original question first, and then feel free to offer alternatives. But you have to answer the original question. Commented Nov 20, 2009 at 17:11
  • Ken, you can only "disable" it by renaming the extension association for Wscript.exe or Cscript.exe or deleting those .exe files. And yes, you can even delete windows and install Linux and do not have it. But thanks for your very useful comment. Commented Nov 20, 2009 at 17:27
  • @ken, the word batch is very loosely defined. batch files run a series of commands to perform a job. if i write a vbscript, save it as myscript.vbs and then put it in a file called test.bat, is it still a batch file? why not, it runs wscript.exe or cscript.exe, much the same as any other command line tools.. Commented Nov 21, 2009 at 2:41