问题描述
我正在使用 Rad Studio 在窗口 10 中运行 C++。
我一直在尝试将文件从网络驱动器复制到本地驱动器。
当我尝试将文件从本地复制到本地时,它成功了!
但是当我尝试从服务器或映射驱动程序(Z:) 复制文件时, 没有错误,没有复制。
所以很难找到问题所在。
我想大多数确实需要某种身份验证。
但我仍然坚持它。
这是我的代码。
String source = L"\\\\sever1\\Data\\program1.exe"; // Server to Local : result==> Not copied,no error.
// What I tried to test.
// String source = L"E:\\file1\\083\\program1.exe"; //Local to Local : result==> It works!
// String source = L"Z:\\program1.exe"; //mapped driver : result==> Not copied,no error.
String destination = L"C:\\Our Programs\\program1.exe";
result = copyFile( source.w_str(),destination.w_str(),true);
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)