encrypting and replacing

Dick Gevers dvgevers at xs4all.nl
Tue Jan 20 22:20:06 CET 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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
something like:

gpg -ea -r UID file.txt && echo y | del file.txt

YMMV according to the version of command.com / cmd.exe

HTH
=Dick Gevers=

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Encryption is an envelope - the contents are private.

iD8DBQFADamVwC/zk+cxEdMRAknHAKDK62PZKatW2RhZVfgKq2+YMGtu7ACg1J1D
mlPzfkpWTIf0kZnD5YYjqzw=
=rTI3
-----END PGP SIGNATURE-----



More information about the Gnupg-users mailing list