[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnupg-users
Subject:    Re: encrypting and replacing
From:       Dick Gevers <dvgevers () xs4all ! nl>
Date:       2004-01-20 22:20:06
Message-ID: 20040120222006.075a08d3.dvgevers () xs4all ! nl
[Download RAW message or body]

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

On Tue, 20 Jan 2004 17:06:18 +0100, "Richard J. Cattien"
<rc.foreign@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-----

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic