开发者

copy directory from network (or shared) path to local directory in VC++

开发者 https://www.devze.com 2023-03-04 02:31 出处:网络
How to开发者_开发技巧 do this can anyone help me i also want some help in checking whether the directory exists in network path or not

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")

0

精彩评论

暂无评论...
验证码 换一张
取 消