Renaming transferred file to remote server

Advertisement

urnrg
Guest

Renaming transferred file to remote server

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?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Renaming transferred file to remote server

Anonymous wrote:

No problems. Is there a reason for this convention?
That's how masks work on Windows. Try
copy somefile _*_

Reply with quote

urnrg
Guest

Re: Renaming transferred file to remote server

martin wrote:

Anonymous wrote:

No problems. Is there a reason for this convention?
That's how masks work on Windows. Try
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.

Reply with quote

Advertisement

You can post new topics in this forum