【问题标题】:VBScript copy a file from a Network Server to another Network ServerVBScript 将文件从网络服务器复制到另一个网络服务器
【发布时间】:2012-01-26 13:57:06
【问题描述】:

我想从

复制一个文件
\\Server\SharedFolder\NameOfFile.txt

\\Server2\SecondSharedFolder\NameOfFile - 1-10-2012.txt

我可以复制和重命名本地驱动器上的文件。我无法访问名为 NameOfFile.txt 的文件

我收到以下错误

Microsoft VBScript runtime error (50, 9) : File not found

这是有问题的代码

fso.CopyFile SourcePath, DestinationPath, True

【问题讨论】:

  • 我只是想问你,当你得到错误时,SourcePathDestinationPath 的值是什么。

标签: vba vbscript windows-server-2003


【解决方案1】:

SourcePath 缺少“\”

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-08-17
    • 1970-01-01
    • 1970-01-01
    • 2018-03-23
    • 1970-01-01
    • 2011-12-26
    • 1970-01-01
    • 2013-10-20
    相关资源
    最近更新 更多