command window popup
Jerry Windrel
jerry.windrel at verizon.net
Wed Apr 28 23:36:12 CEST 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Basically you have to call the Windows API to create a process.
Here's how you would do it in Perl... there are similar techniques in
other languages.
====================================
# run the command 'gpg --recipient harry --encrypt foo.txt' without
# a command prompt box
use Win32;
use Win32::Process;
Win32::Process::Create($Win32::Process::Create::ProcessObj,
'c:\gnupg\gpg.exe',
'--recipient',
'harry',
'--encrypt',
'foo.txt',
0,
DETACHED_PROCESS,
'.') || die &print_error;
sub print_error {
print Win32::FormatMessage(Win32::GetLastError());
}
- ----- Original Message -----
From: "Eli Wheaton" <ewheaton at rapidstability.com>
To: <gnupg-users at gnupg.org>
Sent: Wednesday, April 28, 2004 3:04 PM
Subject: command window popup
> Hi All,
>
> Does anyone know how to use gnupg from within an application
> without having the black Windows command window popup?
>
> THANKS IN ADVANCE
>
>
>
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users at gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3 - not licensed for commercial use: www.pgp.com
iQA/AwUBQJAjoYlVuABWWiqVEQK6pACgiXX++1o8OPPeylixht91237LcPoAnRbK
vVR5SBv2FdwOa23uwJjdbmd1
=M2R1
-----END PGP SIGNATURE-----
More information about the Gnupg-users
mailing list