Error moving file to other disk

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
aleksazr
Junior Member
Junior Member
Posts: 37
Joined: 2010-03-05, 11:57 UTC

Error moving file to other disk

Post by *aleksazr »

1. place cursor on c:\filename.ext
2. press shift+F5 (copy)
3. insert d:\ in front of default filename

it works.

1. same-as-before
2. press shift+F6 (move)
3. same-as-before

i get: "Error: Cannot read c:\filename.ext!"

using 7.55 32 bit (17.06.2010) on Xp sp3
User avatar
Vochomurka
Power Member
Power Member
Posts: 816
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka »

Why do you press the redundant key (Shift)? You should press just F5 and F6, respectively. Both ways work.
Single user license #329241
PowerPro scripts for Total Commander
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2aleksazr
According to Help file:
SHIFT+F5 Copy files (with rename) in the same directory

So you're telling TC to copy file which already exists into the same folder. Since there is no c:\filename.ext an error occurs.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
aleksazr
Junior Member
Junior Member
Posts: 37
Joined: 2010-03-05, 11:57 UTC

Post by *aleksazr »

Vochomurka wrote:Why do you press the redundant key (Shift)? You should press just F5 and F6, respectively. Both ways work.
Pressing only F5/F6 copies/moves to other pane, giving
the new default name consisting of both directory name and filename.

Pressing shift+F5/F6 gives only filename in the copy/move edit box,
which is good if I want to just copy/move a file from C: to A:\

For example, I can just insert the floppy and shift+F5 to copy a file
to the floppy w/o opening the destination in the other pane.
Shift+F6 fails here.

Maybe this isn't the purpose of these two (shift) commands,
but one of them works, thus, the other should also work.
aleksazr
Junior Member
Junior Member
Posts: 37
Joined: 2010-03-05, 11:57 UTC

Post by *aleksazr »

fenix_productions wrote:2aleksazr
According to Help file:
SHIFT+F5 Copy files (with rename) in the same directory

So you're telling TC to copy file which already exists into the same folder. Since there is no c:\filename.ext an error occurs.
You didn't read my post correctly.
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2aleksazr
You're right. Misread+mistyped.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50523
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I tried both, and I was asked for Admin rights in both cases because normally users aren't allowed to create new files in c:\ root, only folders. Maybe your file was locked/opened by some other program? In this case, you may still be able to copy it, but not to move it.
Author of Total Commander
https://www.ghisler.com
aleksazr
Junior Member
Junior Member
Posts: 37
Joined: 2010-03-05, 11:57 UTC

Post by *aleksazr »

ghisler(Author) wrote:I tried both, and I was asked for Admin rights in both cases because normally users aren't allowed to create new files in c:\ root, only folders. Maybe your file was locked/opened by some other program? In this case, you may still be able to copy it, but not to move it.
I'm not asked anything, since I'm always logged in as Admin.
I'm pretty sure that it wasn't locked/opened.
Please read again my first post, since I'm copying/moving
FROM C: (to D:), not to C:
I've also tried copy/move from D: to C: with the same results.

I should add that, beneath the "Error: Cannot read c:\filename.ext!"
is displayed the Rename/Move dlg box with correct From and To fields.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50523
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Well, it just means that TC gets an error when it calls CopyFileEx. It could also be a write error, sometimes it's not possible to distinguish the two with CopyFileEx.

Maybe you can find out the reason with a tool like "process monitor" from www.sysinternals.com ?
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 16031
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I can confirm aleksazr's report, also when not using CopyFileEx (using big file copy mode in stead).

The question It why it is only possible to move a file to another directory using Shift+F6, when this directory is on the same drive, but not to a different drive.

It works if I mark more than one file and press Shift+F6 - then I can move the files to another drive - just not when it is done inline.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
aleksazr
Junior Member
Junior Member
Posts: 37
Joined: 2010-03-05, 11:57 UTC

Post by *aleksazr »

I've sent an email to support at ghisler com from aleksazr @ gmail.com
[mod]E-mail address modified as inactive to fight against spam.
Clo, moderator.[/mod]
[mod]Support e-mail address garbled a bit, too.

Hacker (Moderator)[/mod]
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50523
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, I cannot help you because I cannot reproduce the problem.
Author of Total Commander
https://www.ghisler.com
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

The problem is Shift+F6 is an inline rename, instead of providing a DialogBox like F6, F5, Shift+F5, Ctrl+Shift+F5 and Ctrl+Shift+F6 do.

Thus you can't insert a drive-letter into an inline-rename.

There very well should be a same-panel move like same-panel copy that is separate from the current inline-rename, which doesn't match what all the other copy/move commands do.

Interestingly, you can't do it when you select a folder and subDirBranchView on that folder, and attempt to rename/move a file by inserting a drive-letter --- Nor can you do a search for files within a folder, feed to listbox, and rename/move a given file by changing the drive letter.


(I have F2 used as inline-rename, as every program I use that can rename anything supports that key).
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
User avatar
petermad
Power Member
Power Member
Posts: 16031
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Thus you can't insert a drive-letter into an inline-rename.

Well, it works if the drive letter is the current drive.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply