Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

WinScp - SFTP copy option

$
0
0

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


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>