We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
System special folder path (includes My Documents, My Music, Program Files, Desktop, and more).
Platforms Supported: All
See also ${processdir} , ${basedir} , ${currentdir} , ${tempdir}
${specialfolder:dir=String:file=String:folder=Enum}
Example using CommonApplicationData which is good when running as Windows Service:
CommonApplicationData
fileName="${specialfolder:folder=CommonApplicationData:cached=true}/AppName/logfile.txt"
C:/ProgramData/AppName/logfile.txt
folder - System special folder to use. Full list of options is available at MSDN. The most common ones are:
C:\Users\%USERNAME%\AppData\Roaming
$HOME/.config
/data/Containers/Data/Application/@GENERATED_NAME@/Documents/.config
/data/data/@PACKAGE_NAME@/files/.config
C:\Users\%USERNAME%\AppData\Local
$HOME/.local/share
/data/Containers/Data/Application/@GENERATED_NAME@/Documents
/data/data/@PACKAGE_NAME@/files/.local/share
C:\ProgramData
/usr/share
C:\Users\%USERNAME%\Documents
$HOME
/data/data/@PACKAGE_NAME@/files
C:\Users\%USERNAME%\Desktop
$HOME/Desktop
/data/Containers/Data/Application/@GENERATED_NAME@/Documents/Desktop
/data/data/@PACKAGE_NAME@/files/Desktop
C:\Users\%USERNAME%
/data/Containers/Data/Application/@GENERATED_NAME@
C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Templates
$HOME/Templates
/data/Containers/Data/Application/@GENERATED_NAME@/Documents/Templates
/data/data/@PACKAGE_NAME@/files/Templates
C:\ProgramData\Microsoft\Windows\Templates
/usr/share/templates
C:\WINDOWS\resources
/Library