Active Server Pages

Moderators: None (Apply to moderate this forum)
Number of threads: 1751
Number of posts: 4473

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
[WSH] Windows Scripting Host Posted by bhavin_1 on 8 Nov 2002 at 12:06 PM
When I try to use the wshShell.Run method on my win2k box from an ASP page, the command doesn't run. My code is something like this:

StrCmd = "D:\TMP\Try1\createApp.bat " & AppName
Set WshShell = Server.CreateObject("WScript.Shell")
retval = WshShell.Run(StrCmd, 0, true)

I get retval always as 1.
createApp.bat is just a batch file with Application Center 2000 command "ac application /create /name:%1"

If anyone has any ideas, I'd greatly appreciate it.
Thanks.





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.