encrypting and replacing
dvgevers at xs4all.nl
Tue Jan 20 22:20:06 CET 2004
-----BEGIN PGP SIGNED MESSAGE-----
On Tue, 20 Jan 2004 17:06:18 +0100, "Richard J. Cattien"
<rc.foreign at gmx.net> wrote about Re: encrypting and replacing:
>> > $ gpg -ea -r UID file.txt && rm -f file.txt
>> Ha-ha! OP uses Outlook, so he is on Windows. But this command is for
>> Unix shells...
>But AFAIK you can use the pipe in cmd.exe (command.com). It should be
>possible with a batchfile or something like that.
IIRC (it`s been a while since I wrote winscripts) a batfile with following
content should work:
gpg -ea -r UID file.txt && del file.txt
However, if you`d want to enter it on the commandline, it`d have to be
gpg -ea -r UID file.txt && echo y | del file.txt
YMMV according to the version of command.com / cmd.exe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Encryption is an envelope - the contents are private.
-----END PGP SIGNATURE-----
More information about the Gnupg-users