Copy and rename files with *.*

Discussion of bugs and problems found in Altap Salamander. In your reports, please be as descriptive as possible, and report one incident per report. Do not post crash reports here, send us the generated bug report by email instead, please.
Guest

Copy and rename files with *.*

Post by Guest »

Copy a file oldname.txt to another folder with new*.*
The copied file is newname.txt and not as expected newoldname.txt
Bug or feature?
User avatar
ino
Posts: 440
Joined: 09 Dec 2005, 14:59
Location: Brno, Czech Republic

Re: Copy and rename files with *.*

Post by ino »

Anonymous wrote:Copy a file oldname.txt to another folder with new*.*
The copied file is newname.txt and not as expected newoldname.txt
Bug or feature?
It is the same as in Windows Command Line. So it is windows feature. ;-)
User avatar
zarevak
Plugin Developer
Plugin Developer
Posts: 789
Joined: 04 Feb 2006, 16:49
Location: Prague, Czech Republic

Post by zarevak »

Hi,
you can use Renamer plugin (from menu Plugins > Renamer > Batch Rename or using CTRL+SHIFT+R hotkey)
Then in the New name field write: "new$(OriginalName)" , check the new names in the Preview part and click Rename

Renamer plugin can be used for more sophisticated renaming, using substrings, dates, counters, regular expressions, and more ...
User avatar
ino
Posts: 440
Joined: 09 Dec 2005, 14:59
Location: Brno, Czech Republic

Re: Copy and rename files with *.*

Post by ino »

Anonymous wrote:Copy a file oldname.txt to another folder with new*.*
The copied file is newname.txt and not as expected newoldname.txt
Bug or feature?
anyway you can use another wildcard character the question mark "?" which represents one character.

in your exaple:
oldname.txt using new*.* you get newname.txt
oldname.txt using new???????.* you get newoldname.txt

for more examples see this link http://www.google.com/search?num=100&q= ... tnG=Search
Post Reply