Sans ouvrir l'Explorateur Windows. Je veux vérifier cela à partir de Word VBA.Avec VBA, comment puis-je vérifier si, dans l'Explorateur Windows, les extensions de fichiers pour les types de fichiers connus sont masquées?
Merci.
EDIT:
Ce code fonctionne maintenant:
Set WshShell = CreateObject("WScript.Shell")
If WshShell.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt") = 0 Then
MsgBox Prompt:="In Windows Explorer, set the folder options to hide file extensions of known file types." _
& vbCrLf & vbCrLf & " This prevents the file extension from appearing as part of the document number in" _
& "the document body and page headers.", Buttons:=vbOKOnly + vbCritical, Title:="Critical"
End If
Ceci est dans Windows Vista. – systemovich