I created an application that runs as a service.

I created an application that runs as a service.
The service application is attempting to execute c:proediwauditw.exe.
The service is obviously not running on the same directory to execute, I can only run it if I go to the directory, why?

Answer Wiki

Hello Adhil,
this happens because the system doesn’t know where the file is located.
In order to let the OS know where the file is simply add it to the PATH environment variable.
To do so please do:
-Right click My computer,
-Select properties
-Click the Advanced tab
-Click the Environment variables button
-In the frame below select PATH and click the edit button
-Move to the end of the string and add <i>c:\proediw</i>

This tells the system where to search for.

Bye

Don’t forget to visit my blog:<a href=”http://itknowledgeexchange.techtarget.com/it-support/”> If it has a plug, it’s IT stuff!!</a>

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your response...

Discuss This Question: &nbsp

There was an error processing your information. Please try again later.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your reply...

There was an error processing your information. Please try again later.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your reply...

Ask a Question

Free Guide: Managing storage for virtual environments

Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!

Share this item with your network:

To follow this tag...

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy