copy directory from network (or shared) path to local directory in VC++
How to开发者_开发技巧 do this can anyone help me i also want some help in checking whether the directory exists in network path or not
if(Directory::Exists(networkpath))
is not working either...
i have network path starting with'\somefolder\dir' i tried this way
if(Directory::Exists("\\\somefolder\\dir")
no luck....
The string you posted has a single backslash before dir
, that won't work because inside the string literal the backslash is treated as the first half of an escape character.
You need to use double backslashes for every single backslash in the undecorated filepath.
if(Directory::Exists("\\\\somefolder\\dir")
精彩评论