Copy from desktop -> Error copying files
Moderators: white, Hacker, petermad, Stefan2
Copy from desktop -> Error copying files
I noticed this strange behaviour on my PC and was wondering if someone knows why it happens (this is quite new probably since 6.54Beta although I am not sure it is related to TC).
When I copy/move from the desktop in TC's pane to somewhere else or vice versa I get this error message (Error copying files), today I noticed that it happens only if the desktop was called through this shortcut (\\).
I put a video as I guess my explainations are not very clear.
(Desktop = Bureau in french)
http://mesphotos.fontismedia.com/tc/desktop_issue.sqx (100 KB) right-click
http://mesphotos.fontismedia.com/tc/desktop_issue.zip (1MB)
TIA
When I copy/move from the desktop in TC's pane to somewhere else or vice versa I get this error message (Error copying files), today I noticed that it happens only if the desktop was called through this shortcut (\\).
I put a video as I guess my explainations are not very clear.
(Desktop = Bureau in french)
http://mesphotos.fontismedia.com/tc/desktop_issue.sqx (100 KB) right-click
http://mesphotos.fontismedia.com/tc/desktop_issue.zip (1MB)
TIA
Gil
Licence #17346
90% of coding is debugging. The other 10% is writing bugs.
Licence #17346
90% of coding is debugging. The other 10% is writing bugs.
- ghisler(Author)
- Site Admin
- Posts: 48096
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Copy from/to the desktop is done via OLE2. TC just reports an error if it gets an error back from the OLE2 functions. It's possible that you have a shell extension which crashes the OLE2 subsystem when calling these functions from TC.
Does it work when you use Ctrl+C Tab Ctrl+V? Does it work when you use the right click context menu?
Does it work when you use Ctrl+C Tab Ctrl+V? Does it work when you use the right click context menu?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- majkinetor !
- Power Member
- Posts: 1580
- Joined: 2006-01-18, 07:56 UTC
- Contact:
Try do drag & drop from desktop to pane. What do you get ?
I have the same problems but when using plugins with files on desktop. When I put your sqx archive on the desktop I can copy it, but I can not enter it (double clik opens associated application) and I can not use "Unpack files" ("Error in archive")
2 Ghisler
Why do u use OLE2 for desktop files. Can't you find real locations of this Virtual Folder and use that path instead ? In the background, transparent, so nobody knows.....
I have the same problems but when using plugins with files on desktop. When I put your sqx archive on the desktop I can copy it, but I can not enter it (double clik opens associated application) and I can not use "Unpack files" ("Error in archive")
2 Ghisler
Why do u use OLE2 for desktop files. Can't you find real locations of this Virtual Folder and use that path instead ? In the background, transparent, so nobody knows.....
Habemus majkam!
- ghisler(Author)
- Site Admin
- Posts: 48096
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
2majkinetor !
Unfortunately not - the desktop is a virtual folder which takes files from multiple locations, usually
Documents and Settings\<username>\Desktop
and
Documents and Settings\All Users\Desktop
Unfortunately there seems to be no way to find out which file is in which of these locations...
Unfortunately not - the desktop is a virtual folder which takes files from multiple locations, usually
Documents and Settings\<username>\Desktop
and
Documents and Settings\All Users\Desktop
Unfortunately there seems to be no way to find out which file is in which of these locations...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- majkinetor !
- Power Member
- Posts: 1580
- Joined: 2006-01-18, 07:56 UTC
- Contact:
Sorry for the late reply
http://mesphotos.fontismedia.com/tc/shexview_report.html
How can I know which shell extension crashes OLE2 if any ? I generate a report with ShellExView do you have any idea which one entry I should try to disable ?ghisler(Author) wrote:Copy from/to the desktop is done via OLE2. TC just reports an error if it gets an error back from the OLE2 functions. It's possible that you have a shell extension which crashes the OLE2 subsystem when calling these functions from TC.
http://mesphotos.fontismedia.com/tc/shexview_report.html
It seems to work with Ctrl+C Ctrl+V and now I can copy again without error message but I still cannot rename. Weird isn't it ?ghisler(Author) wrote: Does it work when you use Ctrl+C Tab Ctrl+V? Does it work when you use the right click context menu?
I tried that during the test without success (same error message).majkinetor ! wrote: Try do drag & drop from desktop to pane. What do you get ?
Gil
Licence #17346
90% of coding is debugging. The other 10% is writing bugs.
Licence #17346
90% of coding is debugging. The other 10% is writing bugs.
- majkinetor !
- Power Member
- Posts: 1580
- Joined: 2006-01-18, 07:56 UTC
- Contact:
I disable them all and reboot. I still get the same error message. CTRL+C CTRL+V works but this time it didn't resolve the issue. I still cannot copy move rename... with TC.majkinetor ! wrote:Disable them all for the start....
So it seems that shell extensions are not the cause of the problem, other suggestions? How can I detect if OLE32 has crashed and what has made it crashed?
The workaround is to go to the real path but I am just curious to know what can be the cause of this behaviour.
Gil
Licence #17346
90% of coding is debugging. The other 10% is writing bugs.
Licence #17346
90% of coding is debugging. The other 10% is writing bugs.
- majkinetor !
- Power Member
- Posts: 1580
- Joined: 2006-01-18, 07:56 UTC
- Contact:
- Balderstrom
- Power Member
- Posts: 2148
- Joined: 2005-10-11, 10:10 UTC
Wouldn't this be a simple matter of checking those 2 locations before doing a file operation? I have since stopped using \\Desktop due to its complete inability to do anything except for change to another directory. And after changing directory TC can't find its way back to the desktop the "path" is irrevocably corrupted.ghisler(Author) wrote:2majkinetor !
Unfortunately not - the desktop is a virtual folder which takes files from multiple locations, usually
Documents and Settings\<username>\Desktop
and
Documents and Settings\All Users\Desktop
Unfortunately there seems to be no way to find out which file is in which of these locations...
And when utilizing a locked Tab on C:\Docs\<UserName>\Desktop\ you lose out on any shortcuts/files that happen to be located in AllUsers, as well as
My Documents\
My Computer\
Network\
Internet Explorer\
Recycle Bin\
- majkinetor !
- Power Member
- Posts: 1580
- Joined: 2006-01-18, 07:56 UTC
- Contact:
2 Ghisler
The function you need is:
SHGetPathFromIDList (IN pidl, OUT str);
PIDL, is used to identify objects in the Shell namespace.
str will contain path after return.
And if anything goes wrong (and in your case it always do:) ), just check in 2 mentioned folders....
I have did this in my console app GuiBox.rar (~45K). Download the app, put some file on the desktop, open console and type:
Select the file on the desktop and you will get its path on console output.
The function you need is:
SHGetPathFromIDList (IN pidl, OUT str);
PIDL, is used to identify objects in the Shell namespace.
str will contain path after return.
And if anything goes wrong (and in your case it always do:) ), just check in 2 mentioned folders....
I have did this in my console app GuiBox.rar (~45K). Download the app, put some file on the desktop, open console and type:
Code: Select all
guibox /F dir - -
Last edited by majkinetor ! on 2006-02-03, 21:45 UTC, edited 3 times in total.
Habemus majkam!
Oh oh
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
The desktop as a virtual folder may contain more than just files and directories from common and user desktop directory. It contains other virtual folders. Some of them may be also virtual folders which cannot be resolved to physical directories.
Conclusion: This is not a technicial problem but needs a well-founded UI design.
Conclusion: This is not a technicial problem but needs a well-founded UI design.
- majkinetor !
- Power Member
- Posts: 1580
- Joined: 2006-01-18, 07:56 UTC
- Contact:
What needs to be so well-founded ?This is not a technicial problem but needs a well-founded UI design
str will contain null if Virtual Folder is selected and path in other cases. If some operation is requested on virtual object (str==null), just skip it...
If somebody select "recycle bin" for packing operation along with some real file you have 2 solutions: first, skip this virtual object, and second - enter it and try too see if it contains some real files by it self and try to pack those files and put them in root of the folder named the same as virtual.
Of course, the first solution will be enough cause who needs second functionality (it is also error proned, imagine packing whole recycle bin) !
So there is acctually nothing there, don't rise false alarms. Just few simple lines of code...
Habemus majkam!