0
我是Vb script
的新手。 我需要將文件從一個服務器位置複製到另一個服務器。我使用下面的代碼:使用vbscript將文件從一臺服務器複製到同一域中的另一臺服務器
Set objFSO = CreateObject("Scripting.FileSystemObject")
strSourcePath = "D:\sample.txt"
strDestinationPath = "\\servername\D:\foldername\"
objFSO.CopyFile strSourcePath,strDestinationPath
但是,我得到一個「路徑找不到」的錯誤,我想的是文件中的文本文件被複制的消息。
你能幫我解決嗎?