简体   繁体   中英

VBScript copy a file from a Network Server to another Network Server

I want to copy a file from

\\Server\SharedFolder\NameOfFile.txt

to

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

I can copy and rename the file on the local drive. I am having trouble access the file called NameOfFile.txt

I get the following error

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

Here is the offending code

fso.CopyFile SourcePath, DestinationPath, True

SourcePath缺少“ \\”

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM