Question : UNC Path Resolution

We use UNC paths in all our Delphi code to reference resources on our client's network. The network our client uses has machines with different names than our own, but we don't want to change any of our code in order to make it work on our own network during testing.

Although we could use constants in the code for the UNC paths or even an external file containing the UNC paths, we don't want to take this route. We are not looking for a code solution.

Is their anyway to set up mappings for the UNC paths in a similar fashion to the Windows HOSTS file? For example set a mapping between \\customerPC1\data and one of our PCs:

192.168.0.1    \\customerPC1\data

I'm pretty sure HOSTS is not the answer as I tried something similar with no success. If I understood how UNC paths are resolved it might be a lot easier! :)

Answer : UNC Path Resolution

PAQed with points refunded (250)

modulo
Community Support Moderator
Random Solutions  
 
programming4us programming4us