Considering that I am executing an EXE file (application D2006) on a machine over the network, how can I get the path to the commondocs folder on this computer, given that the EXE could be called from a UNC shortcut or an associated shortcut to disk, and the platform of the remote machine is not necessary known (but will be> = WinXP)?
The situation is that the client has a large number of scattered machines, and they cannot be bothered by installing my application on all PCs. So what they do is install the executable file somewhere on the network and give everyone a link to it. This already seems appropriate to them, and there are no problems there.
At their request, I made the application read the settings from the INI file placed in the same folder as the executable file. I can only assume that they configured everything so that all users can write to this folder in order to save the INI file.
However, I want to change it so that the INI file is read and saved somewhere in the commondocs folder tree on the remote computer so that they do not need to be granted write access to the program file folder.
source
share