Trying to upload an entire directory structure in one hit
I have WinSCP working nicely at the command line (Windows 11) for single files in the 'current' directory- (i.e. the directory in which the batch file is located) directory using...
But, what I really need is for ALL
Is that actually possible? – maybe I'm missing a simple switch but I cannot find it in the documentation.
Many thanks everyone
Nick
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^ /log="C:\my-dir\WinSCP.log" /ini=nul ^ /command ^ "open ftp://username:password@host/ -rawsettings CacheDirectories=0 CacheDirectoryChanges=0" ^ "put *.pdf /public_html/assets/PDF/" ^ "exit"
pdf
files (and only pdf
files) in the current directory AND all those in subdirectories PLUS I need the subdirectory structure to be honoured and created on the remote if they don't already exist.
Is that actually possible? – maybe I'm missing a simple switch but I cannot find it in the documentation.
Many thanks everyone
Nick