Problem with opening MSOffice files

English support forum

Moderators: Stefan2, white, sheep, Hacker

patrice.regnier
Junior Member
Junior Member
Posts: 6
Joined: 2018-08-08, 10:54 UTC

Problem with opening MSOffice files

Post by *patrice.regnier » 2018-08-08, 10:59 UTC

Dear all,

I have been using TC for more than 10 years and have moved to a windows 10 terminal server today.
Installed TC64 9.20.

When I want to open a MSOffice file I have the following warning:
Access denied on file:
[path]!
"The specified module could not be found"

Other files (i.e. pdf) work.
When I open through the windows explorer it works.
If, in TC, I do right click / open with and select the suggested application, it works.

First time I see this bug, in case someone can help.

Thanks in advance.

Patrice

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

Re: Problem with opening MSOffice files

Post by *ghisler(Author) » 2018-08-08, 14:34 UTC

This means that the file association is either damaged/incomplete, or uses a method not supported by Total Commander. File associations in Windows are a big mess, there are dozens of ways to do the same thing, and some are badly documented. Microsoft seems to come up with new association methods all the time.

The easiest solution would be to define your own association just for Total Commander:
Menu files - Internal associations - Add - .docx - pick Word - OK.
Author of Total Commander
http://www.ghisler.com

patrice.regnier
Junior Member
Junior Member
Posts: 6
Joined: 2018-08-08, 10:54 UTC

Re: Problem with opening MSOffice files

Post by *patrice.regnier » 2018-08-08, 18:30 UTC

Solved!
Thank you.
Patrice

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

Re: Problem with opening MSOffice files

Post by *ghisler(Author) » 2018-08-09, 09:48 UTC

It would still be useful to know why it doesn't work with the Windows associations. Therefore I have written a small tool which reads the relevant data from the registry, and allows to copy it to the clipboard for pasting here:
https://www.totalcommander.ch/win/registryinfo.zip

Could you do this for the problematic extension (e.g. docx), please? Thanks!
Author of Total Commander
http://www.ghisler.com

patrice.regnier
Junior Member
Junior Member
Posts: 6
Joined: 2018-08-08, 10:54 UTC

Re: Problem with opening MSOffice files

Post by *patrice.regnier » 2018-08-09, 11:47 UTC

Here you go!
[FYI, it's MSO 2016, this looks strange: "Word.Document.12"

[HKEY_CLASSES_ROOT\.docx]
(default)="Word.Document.12"
PerceivedType="document"
Content Type="application/vnd.openxmlformats-officedocument.wordprocessingml.document"
[HKEY_CLASSES_ROOT\.docx\OpenWithList]
[HKEY_CLASSES_ROOT\.docx\OpenWithList\WordPad.exe]
(default)=""
[HKEY_CLASSES_ROOT\.docx\PersistentHandler]
(default)="{D3B41FA1-01E3-49AF-AA25-1D0D824275AE}"
[HKEY_CLASSES_ROOT\.docx\ShellEx]
[HKEY_CLASSES_ROOT\.docx\ShellEx\PropertyHandler]
(default)="{993BE281-6695-4BA5-8A2A-7AACBFAAB69E}"
[HKEY_CLASSES_ROOT\.docx\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}]
(default)="{84F66100-FF7C-4fb4-B0C0-02CD7FB668FE}"
[HKEY_CLASSES_ROOT\.docx\ShellEx\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}]
(default)="{C41662BB-1FA0-4CE0-8DC5-9B7F8279FF97}"
[HKEY_CLASSES_ROOT\.docx\Word.Document.12]
[HKEY_CLASSES_ROOT\.docx\Word.Document.12\ShellNew]
NullFile=""
=============================
[HKEY_CLASSES_ROOT\Word.Document.12]
(default)="Microsoft Word Document"
FriendlyTypeName="@%CommonProgramFiles%\Microsoft Shared\Office16\oregres.dll,-123"
BrowserFlags=type(4)
[HKEY_CLASSES_ROOT\Word.Document.12\CLSID]
(default)="{F4754C9B-64F5-4B40-8AF4-679732AC0607}"
[HKEY_CLASSES_ROOT\Word.Document.12\DefaultIcon]
(default)="C:\Windows\Installer\{90160000-0012-0000-1000-0000000FF1CE}\wordicon.exe,13"
[HKEY_CLASSES_ROOT\Word.Document.12\DocObject]
(default)="16"
[HKEY_CLASSES_ROOT\Word.Document.12\HTML Handler]
(default)=""C:\PROGRA~1\MICROS~1\Office16\MSOHTMED.EXE" "%1""
[HKEY_CLASSES_ROOT\Word.Document.12\HTML Handler\Icon]
(default)=".dochtml"
.htm=".dochtml"
.html=".dochtml"
.mhtml=".docmhtml"
.mht=".docmhtml"
[HKEY_CLASSES_ROOT\Word.Document.12\HTML Handler\shell]
[HKEY_CLASSES_ROOT\Word.Document.12\HTML Handler\shell\edit]
[HKEY_CLASSES_ROOT\Word.Document.12\HTML Handler\shell\edit\command]
(default)=""C:\PROGRA~1\MICROS~1\Office16\MSOHTMED.EXE" /o0 "%1""
[HKEY_CLASSES_ROOT\Word.Document.12\HTML Handler\shell\PrintWithOptions]
[HKEY_CLASSES_ROOT\Word.Document.12\HTML Handler\shell\PrintWithOptions\command]
(default)=""C:\PROGRA~1\MICROS~1\Office16\WINWORD.EXE" /n"
[HKEY_CLASSES_ROOT\Word.Document.12\HTML Handler\shell\PrintWithOptions\ddeexec]
(default)="[Dim dlg as FilePrint][FileOpen("%1")][t=IsDocumentDirty()][GetCurValues dlg][n = Dialog dlg][if n = -1 then FilePrint dlg][SetDocumentDirty t][DocClose]"
[HKEY_CLASSES_ROOT\Word.Document.12\HTML Handler\shell\PrintWithOptions\ddeexec\Application]
(default)="WinWord"
[HKEY_CLASSES_ROOT\Word.Document.12\HTML Handler\shell\PrintWithOptions\ddeexec\ifexec]
(default)="[Dim dlg as FilePrint][FileOpen("%1")][GetCurValues dlg][n = Dialog dlg][if n = -1 then FilePrint dlg][FileExit 2]"
[HKEY_CLASSES_ROOT\Word.Document.12\HTML Handler\shell\PrintWithOptions\ddeexec\Topic]
(default)="System"
[HKEY_CLASSES_ROOT\Word.Document.12\Insertable]
[HKEY_CLASSES_ROOT\Word.Document.12\protocol]
[HKEY_CLASSES_ROOT\Word.Document.12\protocol\StdFileEditing]
[HKEY_CLASSES_ROOT\Word.Document.12\protocol\StdFileEditing\RequestDataFormats]
(default)="NoteshNote,NotesDocAction"
[HKEY_CLASSES_ROOT\Word.Document.12\protocol\StdFileEditing\server]
(default)="C:\PROGRA~1\MICROS~1\Office16\WINWORD.EXE"
[HKEY_CLASSES_ROOT\Word.Document.12\protocol\StdFileEditing\SetDataFormats]
(default)="NotesDocInfo"
[HKEY_CLASSES_ROOT\Word.Document.12\protocol\StdFileEditing\Verb]
[HKEY_CLASSES_ROOT\Word.Document.12\protocol\StdFileEditing\Verb\0]
(default)="Edit"
[HKEY_CLASSES_ROOT\Word.Document.12\shell]
(default)="Open"
[HKEY_CLASSES_ROOT\Word.Document.12\shell\Edit]
(default)="@%CommonProgramFiles%\Microsoft Shared\Office16\oregres.dll,-1"
[HKEY_CLASSES_ROOT\Word.Document.12\shell\Edit\command]
(default)=""C:\Program Files\Microsoft Office\Office16\WINWORD.EXE" /vu "%1""
command=type(7)
[HKEY_CLASSES_ROOT\Word.Document.12\shell\New]
(default)="@%CommonProgramFiles%\Microsoft Shared\Office16\oregres.dll,-2"
[HKEY_CLASSES_ROOT\Word.Document.12\shell\New\command]
(default)=""C:\Program Files\Microsoft Office\Office16\WINWORD.EXE" /n /f "%1""
command=type(7)
[HKEY_CLASSES_ROOT\Word.Document.12\shell\OnenotePrintto]
(default)="@%CommonProgramFiles%\Microsoft Shared\Office16\oregres.dll,-5"
Extended=""
[HKEY_CLASSES_ROOT\Word.Document.12\shell\OnenotePrintto\command]
(default)=""C:\Program Files\Microsoft Office\Office16\WINWORD.EXE" /j "%1" "%2""
command=type(7)
[HKEY_CLASSES_ROOT\Word.Document.12\shell\Open]
(default)="@%CommonProgramFiles%\Microsoft Shared\Office16\oregres.dll,-3"
[HKEY_CLASSES_ROOT\Word.Document.12\shell\Open\command]
(default)=""C:\Program Files\Microsoft Office\Office16\WINWORD.EXE" /n "%1" /o "%u""
command=type(7)
[HKEY_CLASSES_ROOT\Word.Document.12\shell\OpenAsReadOnly]
(default)="@%CommonProgramFiles%\Microsoft Shared\Office16\oregres.dll,-4"
Extended=""
[HKEY_CLASSES_ROOT\Word.Document.12\shell\OpenAsReadOnly\command]
(default)=""C:\Program Files\Microsoft Office\Office16\WINWORD.EXE" /h /n "%1""
command=type(7)
[HKEY_CLASSES_ROOT\Word.Document.12\shell\Print]
(default)="@%CommonProgramFiles%\Microsoft Shared\Office16\oregres.dll,-5"
[HKEY_CLASSES_ROOT\Word.Document.12\shell\Print\command]
(default)=""C:\Program Files\Microsoft Office\Office16\WINWORD.EXE" /i "%1""
command=type(7)
[HKEY_CLASSES_ROOT\Word.Document.12\shell\Printto]
[HKEY_CLASSES_ROOT\Word.Document.12\shell\Printto\command]
(default)=""C:\Program Files\Microsoft Office\Office16\WINWORD.EXE" /j "%1" "%2""
command=type(7)
[HKEY_CLASSES_ROOT\Word.Document.12\shell\ViewProtected]
(default)="@%CommonProgramFiles%\Microsoft Shared\Office16\oregres.dll,-11"
Extended=""
[HKEY_CLASSES_ROOT\Word.Document.12\shell\ViewProtected\command]
(default)=""C:\Program Files\Microsoft Office\Office16\WINWORD.EXE" /vp "%1""
command=type(7)
[HKEY_CLASSES_ROOT\Word.Document.12\XML Handler]
[HKEY_CLASSES_ROOT\Word.Document.12\XML Handler\Icon]
(default)=".docxml"
.xml=".docxml"
=============================
[Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.docx]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.docx\OpenWithList]
a="WINWORD.EXE"
MRUList="a"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.docx\OpenWithProgids]
docxfile=type(0)
Word.Document.12=type(0)
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.docx\UserChoice]
Hash="88mnl9l9LKM="
ProgId="Word.Document.12"
=============================
Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.docx\UserChoice="Word.Document.12"

User avatar
Usher
Member
Member
Posts: 141
Joined: 2011-03-11, 10:11 UTC

Re: Problem with opening MSOffice files

Post by *Usher » 2018-08-09, 12:56 UTC

patrice.regnier wrote:
2018-08-09, 11:47 UTC
FYI, it's MSO 2016, this looks strange: "Word.Document.12"
Not at all. New formats .docx, .xslx etc. were introduced in MS Office 2007 a.k.a. MS Office 12.

But those DOS-style paths and filenames look really strange in modern systems:
patrice.regnier wrote:
2018-08-09, 11:47 UTC
(...)
[HKEY_CLASSES_ROOT\Word.Document.12\HTML Handler]
(default)=""C:\PROGRA~1\MICROS~1\Office16\MSOHTMED.EXE" "%1""
(...)
[HKEY_CLASSES_ROOT\Word.Document.12\HTML Handler\shell\edit\command]
(default)=""C:\PROGRA~1\MICROS~1\Office16\MSOHTMED.EXE" /o0 "%1""
(...)
[HKEY_CLASSES_ROOT\Word.Document.12\HTML Handler\shell\PrintWithOptions\command]
(default)=""C:\PROGRA~1\MICROS~1\Office16\WINWORD.EXE" /n"
(...)
[HKEY_CLASSES_ROOT\Word.Document.12\protocol\StdFileEditing\server]
(default)="C:\PROGRA~1\MICROS~1\Office16\WINWORD.EXE"
The paths below look better:
patrice.regnier wrote:
2018-08-09, 11:47 UTC
[HKEY_CLASSES_ROOT\Word.Document.12\shell\Edit\command]
(default)=""C:\Program Files\Microsoft Office\Office16\WINWORD.EXE" /vu "%1""

[HKEY_CLASSES_ROOT\Word.Document.12\shell\New\command]
(default)=""C:\Program Files\Microsoft Office\Office16\WINWORD.EXE" /n /f "%1""
But all of them should look like that:
patrice.regnier wrote:
2018-08-09, 11:47 UTC
[HKEY_CLASSES_ROOT\Word.Document.12\shell\Print]
(default)="@%CommonProgramFiles%\Microsoft Shared\Office16\oregres.dll,-5"
It means that it's been 20 lost years for Microsoft programmers, as they still follow coding rules for Windows 95.
Regards from Poland
Andrzej P. Wozniak

User avatar
HolgerK
Power Member
Power Member
Posts: 5017
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Re: Problem with opening MSOffice files

Post by *HolgerK » 2018-08-09, 15:28 UTC

Usher wrote:But all of them should look like that:

patrice.regnier wrote: ↑
Thu 18-08-09 13:47:40
[HKEY_CLASSES_ROOT\Word.Document.12\shell\Print]
(default)="@%CommonProgramFiles%\Microsoft Shared\Office16\oregres.dll,-5"

Definitley not if the installed office is a 64Bit version and the calling program is a 32Bit process.
In this case %CommonProgramFiles% would be resolved as

Code: Select all

C:\Program Files (x86)\Common Files
instead of

Code: Select all

C:\Program Files\Common Files
BTW: here are the RegistryInfo for a 32-Bit Office2016 installation on W10 x64
RegistryInfo : docxShow
[HKEY_CLASSES_ROOT\.docx]
PerceivedType="document"
(default)="Word.Document.12"
Content Type="application/vnd.openxmlformats-officedocument.wordprocessingml.document"
[HKEY_CLASSES_ROOT\.docx\OpenWithList]
[HKEY_CLASSES_ROOT\.docx\OpenWithList\WordPad.exe]
(default)=""
[HKEY_CLASSES_ROOT\.docx\PersistentHandler]
(default)="{D3B41FA1-01E3-49AF-AA25-1D0D824275AE}"
[HKEY_CLASSES_ROOT\.docx\ShellEx]
[HKEY_CLASSES_ROOT\.docx\ShellEx\PropertyHandler]
(default)="{5985FC23-2588-4D9A-B38B-7E7AFFAB3155}"
[HKEY_CLASSES_ROOT\.docx\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}]
(default)="{84F66100-FF7C-4fb4-B0C0-02CD7FB668FE}"
[HKEY_CLASSES_ROOT\.docx\ShellEx\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}]
(default)="{355822FC-86F1-4BE8-B5F0-A33736789641}"
[HKEY_CLASSES_ROOT\.docx\Word.Document.12]
[HKEY_CLASSES_ROOT\.docx\Word.Document.12\ShellNew]
NullFile=""
=============================
[HKEY_CLASSES_ROOT\Word.Document.12]
(default)="Microsoft Word Document"
FriendlyTypeName="@C:\Program Files (x86)\Microsoft Office\Root\VFS\ProgramFilesCommonX86\Microsoft Shared\Office16\oregres.dll,-123"
BrowserFlags=type(4)
[HKEY_CLASSES_ROOT\Word.Document.12\CLSID]
(default)="{F4754C9B-64F5-4B40-8AF4-679732AC0607}"
[HKEY_CLASSES_ROOT\Word.Document.12\DefaultIcon]
(default)="C:\Program Files (x86)\Microsoft Office\Root\VFS\Windows\Installer\{90160000-000F-0000-0000-0000000FF1CE}\wordicon.exe,13"
[HKEY_CLASSES_ROOT\Word.Document.12\DocObject]
(default)="16"
[HKEY_CLASSES_ROOT\Word.Document.12\Insertable]
(default)=""
[HKEY_CLASSES_ROOT\Word.Document.12\Protocol]
[HKEY_CLASSES_ROOT\Word.Document.12\Protocol\StdFileEditing]
[HKEY_CLASSES_ROOT\Word.Document.12\Protocol\StdFileEditing\RequestDataFormats]
(default)="NoteshNote,NotesDocAction"
[HKEY_CLASSES_ROOT\Word.Document.12\Protocol\StdFileEditing\Server]
(default)="C:\Program Files (x86)\Microsoft Office\Root\Office16\WINWORD.EXE"
[HKEY_CLASSES_ROOT\Word.Document.12\Protocol\StdFileEditing\SetDataFormats]
(default)="NotesDocInfo"
[HKEY_CLASSES_ROOT\Word.Document.12\Protocol\StdFileEditing\Verb]
[HKEY_CLASSES_ROOT\Word.Document.12\Protocol\StdFileEditing\Verb\0]
(default)="Edit"
[HKEY_CLASSES_ROOT\Word.Document.12\shell]
(default)="Open"
[HKEY_CLASSES_ROOT\Word.Document.12\shell\Edit]
(default)="@C:\Program Files (x86)\Microsoft Office\Root\VFS\ProgramFilesCommonX86\Microsoft Shared\Office16\oregres.dll,-1"
[HKEY_CLASSES_ROOT\Word.Document.12\shell\Edit\command]
(default)=""C:\Program Files (x86)\Microsoft Office\Root\Office16\WINWORD.EXE" /vu "%1""
[HKEY_CLASSES_ROOT\Word.Document.12\shell\New]
(default)="@C:\Program Files (x86)\Microsoft Office\Root\VFS\ProgramFilesCommonX86\Microsoft Shared\Office16\oregres.dll,-2"
[HKEY_CLASSES_ROOT\Word.Document.12\shell\New\command]
(default)=""C:\Program Files (x86)\Microsoft Office\Root\Office16\WINWORD.EXE" /n /f "%1""
[HKEY_CLASSES_ROOT\Word.Document.12\shell\OnenotePrintto]
(default)="@C:\Program Files (x86)\Microsoft Office\Root\VFS\ProgramFilesCommonX86\Microsoft Shared\Office16\oregres.dll,-5"
Extended=""
[HKEY_CLASSES_ROOT\Word.Document.12\shell\OnenotePrintto\command]
(default)=""C:\Program Files (x86)\Microsoft Office\Root\Office16\WINWORD.EXE" /j "%1" "%2""
[HKEY_CLASSES_ROOT\Word.Document.12\shell\Open]
(default)="@C:\Program Files (x86)\Microsoft Office\Root\VFS\ProgramFilesCommonX86\Microsoft Shared\Office16\oregres.dll,-3"
[HKEY_CLASSES_ROOT\Word.Document.12\shell\Open\command]
(default)=""C:\Program Files (x86)\Microsoft Office\Root\Office16\WINWORD.EXE" /n "%1" /o "%u""
[HKEY_CLASSES_ROOT\Word.Document.12\shell\OpenAsReadOnly]
(default)="@C:\Program Files (x86)\Microsoft Office\Root\VFS\ProgramFilesCommonX86\Microsoft Shared\Office16\oregres.dll,-4"
Extended=""
[HKEY_CLASSES_ROOT\Word.Document.12\shell\OpenAsReadOnly\command]
(default)=""C:\Program Files (x86)\Microsoft Office\Root\Office16\WINWORD.EXE" /h /n "%1""
[HKEY_CLASSES_ROOT\Word.Document.12\shell\Print]
(default)="@C:\Program Files (x86)\Microsoft Office\Root\VFS\ProgramFilesCommonX86\Microsoft Shared\Office16\oregres.dll,-5"
[HKEY_CLASSES_ROOT\Word.Document.12\shell\Print\command]
(default)=""C:\Program Files (x86)\Microsoft Office\Root\Office16\WINWORD.EXE" /i "%1""
[HKEY_CLASSES_ROOT\Word.Document.12\shell\Printto]
[HKEY_CLASSES_ROOT\Word.Document.12\shell\Printto\command]
(default)=""C:\Program Files (x86)\Microsoft Office\Root\Office16\WINWORD.EXE" /j "%1" "%2""
[HKEY_CLASSES_ROOT\Word.Document.12\shell\ViewProtected]
(default)="@C:\Program Files (x86)\Microsoft Office\Root\VFS\ProgramFilesCommonX86\Microsoft Shared\Office16\oregres.dll,-11"
Extended=""
[HKEY_CLASSES_ROOT\Word.Document.12\shell\ViewProtected\command]
(default)=""C:\Program Files (x86)\Microsoft Office\Root\Office16\WINWORD.EXE" /vp "%1""
[HKEY_CLASSES_ROOT\Word.Document.12\XML Handler]
[HKEY_CLASSES_ROOT\Word.Document.12\XML Handler\Icon]
(default)=".docxml"
.xml=".docxml"
=============================
[Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.docx]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.docx\OpenWithList]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.docx\OpenWithProgids]
Word.Document.12=type(0)
Regards
Holger
Make our planet great again

User avatar
Usher
Member
Member
Posts: 141
Joined: 2011-03-11, 10:11 UTC

Re: Problem with opening MSOffice files

Post by *Usher » 2018-08-09, 16:06 UTC

It's a matter of quantifiers, but maybe my English is not clear enough. You didn't need to disagree with my opinion, it was not about bitness conflicts.

It's been about DOS-style remnants in registry entries. For me it's been just an example. I have written "should look like that", which means in this context – "should use proper variables and long path/file names" rather than overgeneralized "should use THE SAME variables". "All" is about all the path/file name entries (as in examples for exe files), not all variable names (as in example for dll).
Regards from Poland
Andrzej P. Wozniak

User avatar
HolgerK
Power Member
Power Member
Posts: 5017
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Re: Problem with opening MSOffice files

Post by *HolgerK » 2018-08-09, 16:45 UTC

2Usher
This was never meant as a offense, but more a hint for ghisler(Author) that patrice.regnier installed a 64 bit version of Office2016 which seems to create some strange registry entries.

Afaik MS still seems to prefer the 32 bit version for office installations:
https://support.office.com/en-us/article/choose-between-the-64-bit-or-32-bit-version-of-office-2dee7807-8f95-4d0c-b5fe-6c6f49b8d261?ui=en-US&rs=en-US&ad=US

Regards
Holger
Make our planet great again

patrice.regnier
Junior Member
Junior Member
Posts: 6
Joined: 2018-08-08, 10:54 UTC

Re: Problem with opening MSOffice files

Post by *patrice.regnier » 2018-08-09, 20:24 UTC

Actual path is c:\Program Files\Microsoft Office\Office16\

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

Re: Problem with opening MSOffice files

Post by *ghisler(Author) » 2018-08-10, 08:36 UTC

2patrice.regnier
I can't find any errors in the association. The only thing I don't understand is the parameter %u. Here is the entry which should be used for launching Word:
[HKEY_CLASSES_ROOT\Word.Document.12\shell\Open\command]
(default)=""C:\Program Files\Microsoft Office\Office16\WINWORD.EXE" /n "%1" /o "%u""
Author of Total Commander
http://www.ghisler.com

patrice.regnier
Junior Member
Junior Member
Posts: 6
Joined: 2018-08-08, 10:54 UTC

Re: Problem with opening MSOffice files

Post by *patrice.regnier » 2018-08-10, 12:17 UTC

ghisler(Author) wrote:
2018-08-10, 08:36 UTC
2patrice.regnier
I can't find any errors in the association. The only thing I don't understand is the parameter %u. Here is the entry which should be used for launching Word:
[HKEY_CLASSES_ROOT\Word.Document.12\shell\Open\command]
(default)=""C:\Program Files\Microsoft Office\Office16\WINWORD.EXE" /n "%1" /o "%u""
It's exactly what I have in the registry...

User avatar
HolgerK
Power Member
Power Member
Posts: 5017
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Re: Problem with opening MSOffice files

Post by *HolgerK » 2018-08-10, 13:18 UTC

ghisler(Author) wrote:
2018-08-10, 08:36 UTC
The only thing I don't understand is the parameter %u.
also i'm not an expert for office-installations this maybe helpful:

https://answers.microsoft.com/en-us/office/forum/office_2013_release-powerpoint/undescribed-parameter-ou-in-open-command-in/d5d1b328-930b-4349-a985-be65ab83ba3f wrote:The /OU part stands for "Original URL". The "%U" part stands for "URL".
-The change also happens in Word, but here it is just written as /O instead.
-There is no change to Excel, since it uses DDE.

-This change in the OpenCommand registry keys is a change that Office 2013 needed to make in order to accomodate changes required by DirectInvoke: http://msdn.microsoft.com/en-us/library/ie/jj215788(v=vs.85).aspx
Regards
Holger
Make our planet great again

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

Re: Problem with opening MSOffice files

Post by *ghisler(Author) » 2018-08-10, 15:39 UTC

So my guess is that ShellExecuteEx cannot handle this "%u" parameter, and Excel returns an error?
Author of Total Commander
http://www.ghisler.com

patrice.regnier
Junior Member
Junior Member
Posts: 6
Joined: 2018-08-08, 10:54 UTC

Re: Problem with opening MSOffice files

Post by *patrice.regnier » 2018-08-10, 16:11 UTC

ghisler(Author) wrote:
2018-08-10, 15:39 UTC
So my guess is that ShellExecuteEx cannot handle this "%u" parameter, and Excel returns an error?
As far as I'm concerned I'm OK with your tip, it works fine.
But if you want me to test something, I have admin rights so feel free to ask.

Post Reply