J
Javier Ros
Where can i find the full path to executable to open a document?
I´m doing it: (it´s an example)
extension := ".pdf"
programName := HKEY_CLASSES_ROOT\(extension)\defaultValue
path := HKEY_CLASSES_ROOT\(programName)\shell\open\command\defaultValue
if this way not work then I do it:
extension := ".pdf"
programName :=
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExt
s\(extension)\Application
path :=
HKEY_CLASSES_ROOT\Applications\(programName)\shell\Open\command\defaultValue
if Application key don´t exists in
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExt
s\(extension) then
i get each value in
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExt
s\(extension)\OpenWithList and search it in
HKEY_CLASSES_ROOT\Applications\ to get HKEY_CLASSES_ROOT\Applications\(each
executable)\shell\Open\command\defaultValue
it´s the correct way?
I would like that it work in all windows operating systems.
I would like to do just like the windows explorer does.
Thanks in advance.
Javier Ros Moreno.
I´m doing it: (it´s an example)
extension := ".pdf"
programName := HKEY_CLASSES_ROOT\(extension)\defaultValue
path := HKEY_CLASSES_ROOT\(programName)\shell\open\command\defaultValue
if this way not work then I do it:
extension := ".pdf"
programName :=
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExt
s\(extension)\Application
path :=
HKEY_CLASSES_ROOT\Applications\(programName)\shell\Open\command\defaultValue
if Application key don´t exists in
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExt
s\(extension) then
i get each value in
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExt
s\(extension)\OpenWithList and search it in
HKEY_CLASSES_ROOT\Applications\ to get HKEY_CLASSES_ROOT\Applications\(each
executable)\shell\Open\command\defaultValue
it´s the correct way?
I would like that it work in all windows operating systems.
I would like to do just like the windows explorer does.
Thanks in advance.
Javier Ros Moreno.