By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,162 Members | 1,038 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,162 IT Pros & Developers. It's quick & easy.

How to execute a .cmd file from the classic asp(javascript)?

P: 16
I want to execute a .cmd file from the UI.

I tried the following code. But it is not working. It just passes that line giving no error nor executing.

Expand|Select|Wrap|Line Numbers
  1. var wshell =  Server.CreateObject("WScript.Shell") ;
  2.  
  3. wshell.Run("D:\\inetpub\\wwwroot\\accenture\\core\\maintenance\\commandline\\mail\\RepeatMacroProcessingTask.cmd");
  4.          wshell=null;
  5.  
Did I miss anything?
How else could it be done?

Thanks,
Dinesh M
Mar 15 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.