Pergunta

To access the Appdata folder in Windows, I can just use %APPDATA% in the path name and that's it.

Does this method work on Linux and other OS as well? I know there alternatives to using %APPDATA%, but my question is just if I can use it there, and how the path name is translated.

Foi útil?

Solução

%APPDATA% is a windows only shortcut. The Mac equivalent is usually ~/Library/Application Support, but user specific information is in ~\Library\Preferences and the linux equivalent depends on the specific application. For instance, Chrome data is usually in ~\.Chrome for linux.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top