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...
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
/log="C:\my-dir\WinSCP.log" /ini=nul ^
"open ftp://username:password@host/ -rawsettings CacheDirectories=0 CacheDirectoryChanges=0" ^
"put *.pdf /public_html/assets/PDF/" ^
But, what I really need is for ALL
files (and only
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