Total commander can't open file in OneDrive folder
Moderators: Hacker, petermad, Stefan2, white
Total commander can't open file in OneDrive folder
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 ?
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 ?
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Total commander can't open file in OneDrive folder
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
https://www.ghisler.com
Re: Total commander can't open file in OneDrive folder
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.
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.
- sqa_wizard
- Power Member
- Posts: 3893
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
Re: Total commander can't open file in OneDrive folder
Wild guess:
Do you run TC as administrator ?
Try to start TC as normal user.
Do you run TC as administrator ?
Try to start TC as normal user.
#5767 Personal license
Re: Total commander can't open file in OneDrive folder
Both administrator and normal user don't worksqa_wizard wrote: 2019-08-31, 15:10 UTC
Wild guess:
Do you run TC as administrator ?
Try to start TC as normal user.

- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Total commander can't open file in OneDrive folder
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
https://www.ghisler.com
Re: Total commander can't open file in OneDrive folder
yeah, I know that. I use 32-bit plugin with 32-bit SumatraPDF.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.
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Total commander can't open file in OneDrive folder
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
https://www.ghisler.com
Re: Total commander can't open file in OneDrive folder
I'm just giving an examples.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.![]()

Also, Access denied on file "D:\OneDrive\TotalCMD\SumatraPDF.exe" !
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Total commander can't open file in OneDrive folder
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.Also, Access denied on file "D:\OneDrive\TotalCMD\SumatraPDF.exe" !
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Total commander can't open file in OneDrive folder
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
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
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Total commander can't open file in OneDrive folder
Does running via right click menu work?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Total commander can't open file in OneDrive folder
It doesn't.
Trying to run as administrator also doesn't even prompt for the confirmation.
Trying to run as administrator also doesn't even prompt for the confirmation.
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Total commander can't open file in OneDrive folder
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
https://www.ghisler.com
Re: Total commander can't open file in OneDrive folder
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?
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?