Topic "Renaming transferred file to remote server"

Author Message
urnrg

Guest


Hi. I came across an issue when I copy a file. If I want to rename a file but want to rename it from *.* to _*_.* (adding underscores in my case) the filename will be changed from foo.bar to _oo_.bar.

In fact, adding any number of characters at the beginning will simply replace the same number characters in the filename.

Is there a reason for this or did I find an anomaly?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
That's exactly how it should work. You cannot do what you want to.
_________________
Martin Prikryl
Guest




No problems. Is there a reason for this convention?

Thanks.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Anonymous wrote:
No problems. Is there a reason for this convention?

That's how masks work on Windows. Try
Code:
copy somefile _*_

_________________
Martin Prikryl
urnrg

Guest


prikryl wrote:
Anonymous wrote:
No problems. Is there a reason for this convention?

That's how masks work on Windows. Try
Code:
copy somefile _*_


Not exactly the same

WinSCP: foo.bar _*_.* -> _oo_.bar

Windows: copy foo.bar _*_.* -> _oo.bar_

It's close, though, and I learnt something of Windows. Thanks.
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