Information générale
Catégorie:
Fonctions Windows API
Titre:
Win Function to return program needed by file extension?
Versions des environnements
Network:
Windows Server 2012
Virtual environment:
VMWare
Hi all,
Is there a Windows function that would return the app needed for a file of a certain file extension? e.g. pass into it ".pdf" and it returns the full path the the Acrobat reader which I can then fire up with:
RUN /N &lcAcrobatPath &lcDocFileName
(where lcDocFileName contains the full path to a file name)
I currently have a function that gets the information for Acrobat from a registry entry - but it only does .pdf files What I would prefer is something where I pass it an extension and Windows comes back with the name of the program that is supposed to open this file and/or the full file path. I then would use it to fire up the document they are pointing to.
Thanks,
Albert
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement