如何将文件复制到网络共享 [英] How do I copy a file to net share
问题描述
您好,
我喜欢将文件传输到Windows共享网络文件。此文件未安装在Windows资源管理器中,但可以使用\\\\\\\\\\\\\\\\\\\\\\\\\\\\\目录变量为\\\\\\ ..
我试过
< pre lang =text> Directory.SetCurrentDirectory(CStr(\\\ net \ xyz))
让我访问它,因为它在网络上。
我搜索过,我不想要一个客户端发送器和第二个客户端接收器应用程序的解决方案。我想用vb.net函数解决它。
我想,我不知道所有的引用类,我忘了一个重要的导入,也许。
提前谢谢!
试试这个(开始时双重\\):
Directory.SetCurrentDirectory( CStr ( \\server\xyz))
您还需要拥有共享的安全权限和文件夹首先检查也是。
https: //www.facebook.com/RIZOR0 [ RIZOR ]
Hello,
I like to transfer a file to a windows shared network file. This file is not mounted in Windows Explorer, but can be opened on its commands line with \\server\..
I do not know how to set the directory variable to "\\server\.."
I tried
Directory.SetCurrentDirectory(CStr("\server\xyz"))
But this won't let me access to it, because it is on network.
I searched and I don't want a solution with a client sender and a second client receiver application. I'd like to solve it with vb.net functions.
I suppose, that I don't know all reference classes and I forgot one important to import, perhaps.
Thanks in advance!
Try this (double \ at the start) :
Directory.SetCurrentDirectory(CStr("\\server\xyz"))
You also need to have security permissions on the share and folder first so check that also.
https://www.facebook.com/RIZOR0[RIZOR]
这篇关于如何将文件复制到网络共享的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!