Topic "Transfer and add extension"

Author Message


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?
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27086
Location: Prague, Czechia
To select only files with no extension use a file mask *.

To change file extension use an operation mask *.bak

The command wold be like:

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

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License