how about this:
Dim objFSO
Set objFSO = CreateObject("Scripting.FileSystemObject")
Dim objFile
Set objFile = objFSO.GetFile("C:\file.txt")
Dim strNewPath
strNewPath = "\server\folder\"
objFSO.CopyFile objFile, strNewPath
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
i want to copy some .csv files from a sftp server to a local folder is there a way to do this using vbs?
how about this:
Dim objFSO
Set objFSO = CreateObject("Scripting.FileSystemObject")
Dim objFile
Set objFile = objFSO.GetFile("C:\file.txt")
Dim strNewPath
strNewPath = "\server\folder\"
objFSO.CopyFile objFile, strNewPath
I would recommend using Powershell instead of VBS.