I'm mounting a folder to a virtual disk like this (I'm on Windows XP):
subst z: c:\virtual_disk
This works perfectly okay for one thing, I have a Service (created with C++ / CreateService(...) ) running and it can write files to c:\virtual_disk but not to z:\
I'm using classic fopen, fwrite etc.
I have, I think, narrowed down the problem to some sort of permission problem, I'm not sure though. The service runs on the "localSystem" account and the folder is mounted by me using an administrator account.
Any help appreciated!
Mapping is per user. If you mapped Z using your own account, it won't catch for the local system account. You can either run the service under your own account, or have it do its own mapping.