[Gpg4win-users-en] Is there a way to operate Gpg via command line portably from a USB stick

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Jul 8 20:06:46 CEST 2015

Hi LSmok3--

On Wed 2015-07-08 12:11:50 -0400, L wrote:
> Is there a way to use Gpg via windows command line terminal with Gpg
> installed on USB stick? No attempt I have made to do this, with Gpg
> installed on USB stick and accessible to Thunderbird/Enigmail, has
> worked. At best I can nevigate to the Gpg folder, and activate its .exe,
> but entering Gpg commands produces only an unknown command response.

I think you want to set the PATH environment variable to include your
USB stick's directory.  I don't know what version of Windows you're
using, or where your USB stick is mounted, so i can't give you an exact

But assuming your USB stick is F:\, and gpg is installed in a "gpg"
folder on it, you can probably do:

 set path=F:\gpg;%path% 

See also:




More information about the Gpg4win-users-en mailing list