Discussion Locked

Calling a batch file from a service

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have an app which can run as a service and needs to call a batch file (from a third party) in order to import data. When not run as a service, the whole thing works fine. But as a service, the cmd file seems to do nothing. I have tried local system account for my app, as well as the admin account, but no change. Any clues?

5 replies

by zahir

The batch itself is a normal .cmd file. The service app is written by myself, and from within that I am calling the batch file by executing a new process for cmd.exe and passing it the batch filename as a parameter

by khadka_it

1. what do you mean by batch file.
2.type of batch file.
3.sample provide me batch file.

by zahir

The batch itself is a normal .cmd file. The service app is written by myself, and from within that I am calling the batch file by executing a new process for cmd.exe and passing it the batch filename as a parameter

by kwu

Hi:

I have the same problem. Did you ever get it resolved? If so can you share me with your solution please?

Thanks.

KW

This discussion is closed to new replies.