Topic "Transfer and add extension"

Author Message
cycle

Guest


Can you help me with the following problem.
On SFTP server I have files without extension and files with extension .eoj.
For example "filename" and "filename.eoj".
Files with extension .eoj are always empty and they indicate that the file with same name can be transferred.
I have to transfer only files without extension.
After transfer I have to add an extension .bak on file I have been transferred.
How can I do this thing?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
To select only files with no extension use a file mask *.
http://winscp.net/eng/docs/file_mask#exceptions

To change file extension use an operation mask *.bak
http://winscp.net/eng/docs/operation_mask

The command wold be like:

get /source/path/*. C:\destination\path\*.bak
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License