absolute path (ip) of mounted networked drive

hi,

i am currently working on a project where the state of a program can be stored and the stored "state file" can be loaded so the next user can get to the same state of the program as the user who stored the state (i apologize in advance for my poor english)

so if i store a path to a file, that is stored on a mounted networked drive, the path i store will differ from one pc to the other depending on what linux distribution it will be where the program is running etc...

is there a way to find out about the ip of the mounted drive? for example

map \media\53576837354736893\files\testfile to \\servername\home\files\testfile ?


Use gethostbyname to lookup the address of servername.

I assume this is a Windows question. Please post to Windows Programming in future.
Last edited on
I recommend against using a file for this. Use a transactional service of some sort which can be referred to via a common URI. A database would work. What happens when two people change the state?
Topic archived. No new replies allowed.