Using powershell to upload files to FTP from a UNC path
We have a powershell script that takes a UNC path file (\\fileshare\folder\file.txt), and uploads it to an FTP site. Even though the exists (we can access by pasting the path to a Windows File Explorer window), we get: No file(s) matching \\fileshare\folder\file.txt found. We know the WinSCP interface does not support UNC, but we thought scripting did.
The script works with a local drive.
Is it the case that UNC paths just won't work?
The script works with a local drive.
Is it the case that UNC paths just won't work?