Loading
i18n aware path to "My Documents"
Hi,

 

is there a i18n aware way to detect the path to the "My Documents" folder on Windows plattform?

 

Detecting the users home directory is no big deal ($D(home)) and it seams to be plattform and i18n aware. However an easy way to get access to "My Documents" seems missing...

 

I see no solution for this other than defining a i18n string for the directory or performing a jni call.

 

Have I missed something?

 

Maybe someone had a similar problem and found a simple solution.

 

Regards,

 

Heiko Ott

  • Community Manager (Flexera Software)

    I don't think there's a built-in $D resolver or $E environment variable for that directory; can you use a Get Registry Value action to read the Personal registry value under HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders?
  • Robert,

     

    thanks for this excellent hint. Combined with a plattform condition is this exactly what I was seeking for :-)

     

    Heiko

Loading
i18n aware path to "My Documents"