Re: Script to upload files without the associated subfolders
There's no simple solution for this.
If you have only two folders, why doesn't upload the contained files individually?
If you actually have many folders, you need way more complicated script.
One way would be to enumerate the folder in a batch file and generate WinSCP script with one
Or use a script like this (which is for download):
https://winscp.net/eng/docs/script_download_files_to_same_folder
Similar question: https://winscp.net/forum/viewtopic.php?t=26674
If you have only two folders, why doesn't upload the contained files individually?
If you actually have many folders, you need way more complicated script.
One way would be to enumerate the folder in a batch file and generate WinSCP script with one
put
command for each folder.
Or use a script like this (which is for download):
https://winscp.net/eng/docs/script_download_files_to_same_folder
Similar question: https://winscp.net/forum/viewtopic.php?t=26674