win_folder(?Name,
-Directory)True if Name is the Windows‘CSIDL’of Directory.
If
Name is unbound, all known Windows special paths are
generated.
Name is the CSIDL after deleting the leading CSIDL_
and mapping the constant to lowercase. Check the Windows documentation
for the function SHGetSpecialFolderPath() for a description of
the defined constants. This example extracts the‘My Documents’folder:
?- win_folder(personal, MyDocuments).
MyDocuments = 'C:/Documents and Settings/jan/My Documents'
- Extended in 8.1.15 (👉52460fd) win_folder/2: keys `common_appdata` and `local_appdata`.