Gpg4Win Portable

If GnuPG is installed on a portable device using the mkportable.exe provision in Gpg4Win, how is it run from command?

\gpg2.exe

e.g.

E:\gpg4win\gpg2.exe if your USB stick is mounted under E: and the portable folder name is gpg4win.

Given this operability, how can text be encrypted at command line without importing or exporting a file?

Begin Example

C:\Users\aheinecke>“e:\gpg4win\gpg2.exe” -ae
You did not specify a user ID. (you may use “-r”)

Current recipients:

Enter the user ID. End with an empty line: foo@bar.baz

Current recipients:
1024R/5CB173A4 2016-07-04 “Foo bar foo@bar.baz

Enter the user ID. End with an empty line:
Hello World
-----BEGIN PGP MESSAGE-----
Version: GnuPG v2

hIwDZjQlI1yxc6QBBACmj7nBfhHBqQGuGy3Rbabbal66TAOZyEy0TdT4q+YDv9aA
nN2m8mqkKzSW2VicBLuitZnRQ/7PPvPnXt8FOVBQIxn4WxsAXxJnKmgbmrZ+9GFg
exivIqpMw7p+uIkejKq4PJTO9X/05hcTBufRiDAXfQfC/4Lz0bU+HK/LNYVtytJI
AeDhNz3WGN2uwyh/bmoSe7LX+R2hLu0w9d+vVx9rdLPHAxcFL5KpP2DCeQRdGtW+
SMPoWGcAfYksY6RqEKuheTzjr6jAi39/
=juZv
-----END PGP MESSAGE-----
^C
C:\Users\aheinecke>


End Example

where after typing “Hello world ” you would hit ctrl+c to send the Windows EOF maker. In this example the text “Hello world” is encrypted to the key for foo@bar.baz and you can copy the resulting encrypted PGP Message.