å ä, 2004-01-02 11:31, Morbus Iff åéï > * There's been roughly 50 messages on the topic, and the current > proposed patch for Windows is something like this: > $base = '\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\'; > $dir = _get_reg_value($base . 'Shell Folders\\', 'AppData') > || _get_reg_value($base . 'User Shell Folders\\', 'AppData') > || _get_reg_value($base . 'Shell Folders\\', 'Personal') > || _get_reg_value($base . 'User Shell Folders\\', 'Personal'); > * To allow the user choice, he can set $AMPHETADESK_HOME. > > None of the above, which require runtime determination not compile-time, > would be workable with any of the proposed PAR temp things.
Well, one can use a "launcher" program (Amphetadesk.bat) that determines the value of $PAR_TEMP, set it, then launch the main AmphetaDesk.exe... To get values from registry with a .bat file, see: http://www.calweb.com/~webspace/batch/samples/username.txt This may not be the most elegant of solutions, though... :-) Thanks, /Autrijus/
signature.asc
Description: =?UTF-8?Q?=E9=80=99=E6=98=AF=E6=95=B8=E4=BD=8D=E5=8A=A0=E7=B0=BD?= =?UTF-8?Q?=E7=9A=84=E9=83=B5?= =?UTF-8?Q?=E4=BB=B6?=
