I'm trying to get my web app to recognize my working directory. When running as a windows service, I can set
--StartPath=C:\Path\To\Directory\
and using that I can access files starting from that directory.
ie - Folder\Folder2\file.txt can be opened and recognized as being
C:\Path\To\Directory\Folder\Folder2\file.txt
I thought the same thing would work when not running as a service by just setting user.dir to C:\Path\To\Directory. But when I start the server it can't find the files.
Any advice?