Home All Groups Group Topic Archive Search About

How to call EXE from Batch File in Windows 2003 Server?

Author
1 Jul 2005 8:55 AM
Technology
I have given the following line in batch file and i will call the batch file
from VB DLL in 2003 Server.
I will call the dll from ASP.
Batch file contains:

java > d:\err.err

If the above batch file gets called, then i will get the err file created
with no data.(empty log file)
In the same way if i call
dir > d:\err.err
err file contains the output of the dir command for that particular directory.

please tell me how to call the exe from batch file?
I had set the jdk bin path in environment vars.
please tell me how to call the exe from batch file?

Author
2 Jul 2005 6:39 PM
Jeff Cochran
On Fri, 1 Jul 2005 01:55:04 -0700, "Technology"
<Technol***@discussions.microsoft.com> wrote:

Show quoteHide quote
>I have given the following line in batch file and i will call the batch file
>from VB DLL in 2003 Server.
>I will call the dll from ASP.
>Batch file contains:
>
>java > d:\err.err
>
>If the above batch file gets called, then i will get the err file created
>with no data.(empty log file)
>In the same way if i call
>dir > d:\err.err
>err file contains the output of the dir command for that particular directory.
>
>please tell me how to call the exe from batch file?

Enter the command line in the batch file.  Check a scripting or batch
file group if you need more details.

>I had set the jdk bin path in environment vars.
>please tell me how to call the exe from batch file?

You just asked and I just answered that.

Your problem is likely caused by the fact that you don't understand
what account is running the batch file or DLL.  Keep in mind it is
most likely not the account logged into the physical system, it's the
account your ASP code is running under.  The authenticated user or
anonymous user account.  Naturally, if that account doesn't have
permission, the DLL and batch file and EXE will never run.

Jeff