windows service cannot switch working directory?

G

Green Law

Hi,

My service will call an external batch file which need to switch the working
directory.

Unfortunately, I found the "cd" command not work when it start as a windows
service, while it DO work when I start the application in a console window.

Anybody knows what's wrong?

Regards,
Green
 
G

Green Law

I got the root cause. The directory I want the app switch to is on a mounted
logical disk which can be accessed only via console window, and it is an
illegal path when the app runs in a service progress.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top