Total commander can't open file in OneDrive folder

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

TCer
Junior Member
Junior Member
Posts: 5
Joined: 2019-08-28, 00:33 UTC

Total commander can't open file in OneDrive folder

Post by *TCer »

I use Total Commander(Version 9.22) on Win10, also I have an OneDrive for Business connected to path D:\OneDrive.
I put TC and many programs in OneDrive.

The problem is the following:

Q1. if I create a link on button bar to any executable file in the Onedrive folder, I hit this link, the .exe file can't be open.
However, if I open the .exe file in OS file explorer, the .exe runs well.

Q2. In the internal assocaionts window, I create a file type association. Actually, it doesn't work.

But, if I copy TC and these programs from D:\OneDrive to D:\xxx, Q1/Q2 work fine (.exe is executed, .pdf opens pdf viewer, .xlsx opens Excel, etc.).

Any ideas why TC behaves differently ?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Total commander can't open file in OneDrive folder

Post by *ghisler(Author) »

Hmm, no idea. Does it only affect OneDrive for business? I don't currently have access to it.
Author of Total Commander
https://www.ghisler.com
TCer
Junior Member
Junior Member
Posts: 5
Joined: 2019-08-28, 00:33 UTC

Re: Total commander can't open file in OneDrive folder

Post by *TCer »

If I want to open a PDF file, TC reports:
Access denied on file "D:\OneDrive\TotalCMD\Plugins\wlx\slister\SumatraPDF.exe" !
Invalid handle.

But, if I directly open "D:\OneDrive\TotalCMD\Plugins\wlx\slister\SumatraPDF.exe" in File Exploer, it works fine.
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3854
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Re: Total commander can't open file in OneDrive folder

Post by *sqa_wizard »

Wild guess:
Do you run TC as administrator ?
Try to start TC as normal user.
#5767 Personal license
TCer
Junior Member
Junior Member
Posts: 5
Joined: 2019-08-28, 00:33 UTC

Re: Total commander can't open file in OneDrive folder

Post by *TCer »

sqa_wizard wrote: 2019-08-31, 15:10 UTC
Wild guess:
Do you run TC as administrator ?
Try to start TC as normal user.
Both administrator and normal user don't work :(
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Total commander can't open file in OneDrive folder

Post by *ghisler(Author) »

Make sure you use the right SumatraPDF.exe: The 32-bit plugin needs the 32-bit SumatraPDF.exe, and the 64-bit plugin needs the 64-bit SumatraPDF.exe.
Author of Total Commander
https://www.ghisler.com
TCer
Junior Member
Junior Member
Posts: 5
Joined: 2019-08-28, 00:33 UTC

Re: Total commander can't open file in OneDrive folder

Post by *TCer »

ghisler(Author) wrote: 2019-09-02, 14:49 UTC Make sure you use the right SumatraPDF.exe: The 32-bit plugin needs the 32-bit SumatraPDF.exe, and the 64-bit plugin needs the 64-bit SumatraPDF.exe.
yeah, I know that. I use 32-bit plugin with 32-bit SumatraPDF.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Total commander can't open file in OneDrive folder

Post by *ghisler(Author) »

Unfortunately it's not Total Commander/Lister which launches SumatraPDF.exe in this case, it's launched by the plugin SLister itself. You will have to contact the author of SLister about it, but he hasn't updated the plugin for many years. :(
Author of Total Commander
https://www.ghisler.com
TCer
Junior Member
Junior Member
Posts: 5
Joined: 2019-08-28, 00:33 UTC

Re: Total commander can't open file in OneDrive folder

Post by *TCer »

ghisler(Author) wrote: 2019-09-04, 08:59 UTC Unfortunately it's not Total Commander/Lister which launches SumatraPDF.exe in this case, it's launched by the plugin SLister itself. You will have to contact the author of SLister about it, but he hasn't updated the plugin for many years. :(
I'm just giving an examples. :(
Also, Access denied on file "D:\OneDrive\TotalCMD\SumatraPDF.exe" !
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Total commander can't open file in OneDrive folder

Post by *ghisler(Author) »

Also, Access denied on file "D:\OneDrive\TotalCMD\SumatraPDF.exe" !
How did you try to launch it? For testing, I copied SumatraPDF.exe to the OneDrive folder and double clicked it, and it opened just fine. But I'm using the normal Windows 10 OneDrive, not OneDrive for business.
Author of Total Commander
https://www.ghisler.com
soldaat
Junior Member
Junior Member
Posts: 3
Joined: 2019-09-20, 10:15 UTC

Re: Total commander can't open file in OneDrive folder

Post by *soldaat »

I have a feeling that this issue is not just with OneDrive, but also with iCloud for Windows.

Since a few days I can't execute my portable programs from my iCloud for Windows anymore. No error, nothing in the Windows event logs. But, if I navigate to the program in Windows Explorer, executing it works just fine.

On the other hand, copying the program (KeePass 1 in this case) to my OneDrive For Business and executing it from there works as expected. ¯\_(ツ)_/¯

Behaviour is the same in the 32-bit and 64-bit Total Commander

Versions I'm using right now:

Total Commander 9.22a
Windows 10 Professional 1903 (OS Build 18362.356)
iCloud for Windows 2.0.74.17
OneDrive for Business 19.152.801.9
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Total commander can't open file in OneDrive folder

Post by *ghisler(Author) »

Does running via right click menu work?
Author of Total Commander
https://www.ghisler.com
soldaat
Junior Member
Junior Member
Posts: 3
Joined: 2019-09-20, 10:15 UTC

Re: Total commander can't open file in OneDrive folder

Post by *soldaat »

It doesn't.

Trying to run as administrator also doesn't even prompt for the confirmation.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Total commander can't open file in OneDrive folder

Post by *ghisler(Author) »

Very strange indeed. Btw, why do you need to run an executable from the OneDrive folder? Isn't this a huge security risk?
Author of Total Commander
https://www.ghisler.com
soldaat
Junior Member
Junior Member
Posts: 3
Joined: 2019-09-20, 10:15 UTC

Re: Total commander can't open file in OneDrive folder

Post by *soldaat »

I do it for the portability, enables me to use the program on multiple machines.

I don't see it as a huge security risk, since the actual vault isn't on the drive. Or do you know of another reason I shouldn't do that?
Post Reply