encrypting and replacing

Richard J. Cattien rc.foreign at gmx.net
Tue Jan 20 17:06:18 CET 2004


On Tue, Jan 20, 2004 at 10:23:59AM +0600, Ivan Boldyrev wrote:
> > > Hi. I am looking for a gpg command and option that for exmaple, when a .txt
> > > file is encrypted and its encrypted .gpg file is written, the .txt should be
> > > auotmatically deleted from disk, i.e. the .txt file should be replaced  by
> > > the .gpg file.
> AFAIK, there is no such option.  So, you have to remove file with
> additional command.
> > $ 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.


Richard Cattien,
PGP-Public-Key: http://cattien.org/richard/keys/rc_pubkey.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : /pipermail/attachments/20040120/5cfcfd0b/attachment.bin

More information about the Gnupg-users mailing list