I believe the environment variable %APPDATA% is set for all reasonable versions of Windows you may be targeting (from Windows 2K and up, I believe). So something like filepath = "%APPDATA%\\folder\\file.txt";
You shouldn't need to call a program. But if you do Start -> Run... -> %APPDATA% it should pop up an Explorer window with the appropriate folder open, if you're curious.