John A. Wallace wrote: >> In your bat file for starting Portable Thunderbird, include a line near >> the top similar to >> >> SET GNUPGHOME=%~d0\GnuPG >> >> This will expand to <drive letter>:\GnuPG >> >> If your script for starting Portable Thunderbird is >> <drive>:\PortableApps\Thunderbird.bat, then %~dp0 will expand to >> <drive>:\PortableApps, i.e., the _D_rive and the _P_ath of the called >> command script. > > It occurs to me that I might use %~p0 in order to cover the case when > there is no drive letter but only a UNC pathname. I will test it.
cmd.exe (including executed .bat files, .cmd files, etc.) does not support the current/working directory to be a UNC path. You /may/ be able to work around that restriction with pushd/popd Check this discussion of %~dp0 vs %cd% http://www.computerhope.com/forum/index.php?topic=54333.0 >> >> http://stackoverflow.com/questions/5034076/what-does-dp0-mean-and-how- >> does-it-work Did the Portable GPG effort die? I noticed the discussion board referred to 'John' a few times. I guess that was John Moore. The links from there are 404. -- John P. Clizbe Inet: John (a) Gingerbear DAWT net SKS/Enigmail/PGP-EKP or: John ( @ ) Enigmail DAWT net FSF Assoc #995 / FSFE Fellow #1797 hkp://keyserver.gingerbear.net or mailto:[email protected]?subject=HELP Q:"Just how do the residents of Haiku, Hawai'i hold conversations?" A:"An odd melody / island voices on the winds / surplus of vowels"
signature.asc
Description: OpenPGP digital signature
_______________________________________________ enigmail-users mailing list [email protected] https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net
