Hi.
I have a batch file, which moves multiple files from source server to a destination server through SFTP using WinSCP.
In the destination, the files are inheriting the permission of the source folder. I want to achieve a copy functionality which only inherits the permissions of the destination location.
Below is my existing script:
option batch on option confirm off option transfer ascii open server@Ip cd /folder1/folder2/folder3/folder4 LCD C:\Datafolder1\Folder2\ put -nopreservetime *.TXT close exit
How to achieve a copy functionality rather than a move in WinSCP ?
Thanks