How do I check whether a share path exists?
-
I know that a share path (say \\MycolleaguesmachineIP\\Ourshare\Projects ) exists. How do I determine that it does exist, programmatically. I came across NetShareEnum API but am not sure of its parameter values. Any help in this regard or any other alternative would be appreciated . Thanks in Advance
-
I know that a share path (say \\MycolleaguesmachineIP\\Ourshare\Projects ) exists. How do I determine that it does exist, programmatically. I came across NetShareEnum API but am not sure of its parameter values. Any help in this regard or any other alternative would be appreciated . Thanks in Advance
NetShareGetInfo[^] NetShareEnum sample code[^]
You need to google first, if you have "It's urgent please" mentioned in your question. ;-)_AnShUmAn_
-
I know that a share path (say \\MycolleaguesmachineIP\\Ourshare\Projects ) exists. How do I determine that it does exist, programmatically. I came across NetShareEnum API but am not sure of its parameter values. Any help in this regard or any other alternative would be appreciated . Thanks in Advance
Hello Sherteks, you can use - PathFileExists()[^] to check whether the specified file/directory exists. Regards, Jijo.
_____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.