Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Can't execute WSH script from bat file

Thread Tools

Can't execute WSH script from bat file

Posts: n/a
We're trying to trigger execution of some WSH scripts from a batch file
which in turn is called from an ASP script. The ASP code looks like:
Dim oShell,sResult,sPath
Set oShell = Server.CreateObject("Wscript.Shell")
sPath= server.MapPath("test.bat")
sResult =, 0, FALSE) 'asynchronous
Response.Write sResult

The batch file code looks like:
cd <Full path to application directory>
NonFACSV.wsf E

Now, the problem is that the batch file executes correctly, but
both the WSH scripts are not executed. But if the scripts are
executed on the Windows 2000 command line directly, they work ok.
The same setup works ok on our test server, but not on client's
server having similar configuration. What can be the problem?

Thanks in advance.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to execute a program in Java from a bat file USING a relative path? Bianca Java 0 06-19-2011 08:42 PM
create and execute bat file in Eric Wood ASP .Net 2 07-10-2007 06:48 AM
How to execute a bat file using VB.NET wschrap ASP .Net 2 07-28-2006 02:06 PM
error execute bat file from asp Rocket Hawk ASP General 4 01-12-2004 09:57 PM
Pass ASP variable to Execute in a .bat file Cory ASP General 2 07-09-2003 05:41 PM