Page 1 of 2

Total commander can't open file in OneDrive folder

Posted: 2019-08-28, 01:01 UTC
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 ?

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

Posted: 2019-08-29, 10:56 UTC
by ghisler(Author)
Hmm, no idea. Does it only affect OneDrive for business? I don't currently have access to it.

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

Posted: 2019-08-31, 02:07 UTC
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.

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

Posted: 2019-08-31, 15:10 UTC
by sqa_wizard
Wild guess:
Do you run TC as administrator ?
Try to start TC as normal user.

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

Posted: 2019-09-01, 03:53 UTC
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 :(

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

Posted: 2019-09-02, 14:49 UTC
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.

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

Posted: 2019-09-03, 11:26 UTC
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.

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

Posted: 2019-09-04, 08:59 UTC
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. :(

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

Posted: 2019-09-05, 06:08 UTC
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" !

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

Posted: 2019-09-05, 09:08 UTC
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.

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

Posted: 2019-09-20, 10:31 UTC
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

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

Posted: 2019-09-20, 13:42 UTC
by ghisler(Author)
Does running via right click menu work?

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

Posted: 2019-09-20, 19:42 UTC
by soldaat
It doesn't.

Trying to run as administrator also doesn't even prompt for the confirmation.

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

Posted: 2019-09-23, 13:47 UTC
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?

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

Posted: 2019-09-23, 14:24 UTC
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?