copying / moving group of files RENAMING ?!

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
kalkzone
Junior Member
Junior Member
Posts: 50
Joined: 2004-04-16, 18:13 UTC

copying / moving group of files RENAMING ?!

Post by *kalkzone »

Hi,
There is a potential file loosing mechanism, that should be thought over.

if i select some files to copy ore move to a different folder, i get
the dialog

-> directory\ ... \*.*

hereby especially " star dot star " scheme.

This line can be edited, so the filenames can be modified -
at least partially.

If i wanted the files (to be moved) get an additional filename PREFIX
(example this years week prefix)

i would edit "...\*.* " to "...\WEEK-No*.* " where Week-No should be seen as manually inserted - ELEVEN as word[/i]

I get the result , that all letters of the filenames by the letters of "eleven" are overwritten.

...\myoldfilname.txt would became ...\elevenilname.txt
_________________________________________________________________________________________________________

I did not a deep examining modifiing " *.* " to " *new-end.* "!

BUT i figured out, IT comes to not forseeable results, if additional nameparts are insertet, that are greater in lenght than the original file-names

IT may result in loosing files

__________________________

Examine: create 2 test folders and create testfiles "file-one.txt , file-seven.txt" , file-thirty-two.txt"

1) select all three and move to the other testfolder // edit " *.* " to " four*.* "
---result " file" in names ar replaced by " four "

2) select all three and move back // edit " *.* " to " achtplus1*.txt " (what has one letter more than four-one.txt
--- result
achtplus1.txt gaining 1 lenght in name
achtplus1n.txt
achtplus1ty-two.txt

3) again : edtit " *.* " to " zehnpluszwei*.* " // 12 letter name more than two
HERE it may be important in which order the files where selected

I AM ASKED TO OVERWRITE ONE FILE !

4) again edit "*.*" to filename* that exceeds all in lenght


-------------------------------------------------------------------
There is a potential file loosing mechanism, that should be examined and thought over.
Even if it is in the hand of the user, it may be done in microseconds.

There are some OPTIONS in the dialog //
if "always overwrite is activated" NOT only older targets may be overwritten (what may be wanted),
even NEW SOURCES, that BECAME TARGETS in between through renaming-moving mechanism (what may not be wanted)


regards
juergen
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: copying / moving group of files RENAMING ?!

Post by *Hacker »

kalkzone,
Yes, well, that is by design, since that's the way *.* matching works in cmd.exe, too. So it's not a bug, but definitely up for discussion.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: copying / moving group of files RENAMING ?!

Post by *Hacker »

Moderator message from: "Hacker"

Moved to the English forum.
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
kalkzone
Junior Member
Junior Member
Posts: 50
Joined: 2004-04-16, 18:13 UTC

Re: copying / moving group of files RENAMING ?!

Post by *kalkzone »

Hi
"up for discussion"

I THINK SO !
In the end it SEEMS "under control" BUT anyhow MAY result in UNEXPECTED !

FOR SECURNESS " *.* " could/should be UNMODIFIABLE (prohibit all unexpected AT ALL)
or ALLOW ONLY " *.* " to " PFEFIX (plus) *.* " or to " * (plus)POSTFIX.* "

// just a hint that could be useful //

IF editable / modifiable LIKE NOW
there is a prob if length of " prefix " exceeds " these of than one filename "
resulting in TARGETS with SAME "new generated " filenames!

THAT results in " OVERWRITE Question ", BUT the user might have in mind,
it could be the OLD " to be replace " file,
BUT NOT the ALLREADY NEW GENERATED file.

HERE BY THIS a file loosing is done!
==============================
I guess :: At least ANY / SOME AVOIDING as first step especially for commercial Users is REQUESTED.
-----------------------------------------------------------------------------------------------------------------------


I DO HERBY A STRONG RECOMMENDATION TO CHECK OUT AND WORK ON.

With the "moving funktionality" the moved files ARE LOST AT ALL.
THEY ARE NOT in the GET BACK list of " Recycle BIN".

If I am redundant : Sorry!
regards
juergen
kalkzone
Junior Member
Junior Member
Posts: 50
Joined: 2004-04-16, 18:13 UTC

Re: copying / moving group of files RENAMING ?!

Post by *kalkzone »

correction:

IF editable / modifiable LIKE NOW
there is a prob if length of " prefix " exceeds " these of MORE than one filename "
resulting in TARGETS with SAME "new generated " filenames!

j
User avatar
nsp
Power Member
Power Member
Posts: 1804
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: copying / moving group of files RENAMING ?!

Post by *nsp »

kalkzone wrote: 2022-01-24, 10:22 UTC there is a prob if length of " prefix " exceeds " these of MORE than one filename "
This is a misunderstanding, you cannot set a prefix, just an overwrite.
In fact it is more editable to change folder, as said it works like the copy command of cmd.exe when you do a copy *.* c:\target\toto_*.*
It would be great to be able to edit target files using same expression as MRT in F5/F6 dialog but it is not implemented this way...
kalkzone
Junior Member
Junior Member
Posts: 50
Joined: 2004-04-16, 18:13 UTC

Re: copying / moving group of files RENAMING ?!

Post by *kalkzone »

Hi,
SORRY, i am german, my english is not that suficcient to answer to you.
// i just did not get it //
check out the first posting an try out to follow results.

regards
juergen
kalkzone
Junior Member
Junior Member
Posts: 50
Joined: 2004-04-16, 18:13 UTC

Re: copying / moving group of files RENAMING ?!

Post by *kalkzone »

YES, you can set an " OVERWRITE " by editing !
Especially this might loose files !

DO it ! Check it Out.
(As i described in Post No. 1).

regards
juergen
Post Reply