- Running WIN2000 programs from a Blackbox button

From: [at]} <brett>
Date: Wed, 17 Jan 2007 07:43:33 +1100

----boundary-LibPST-iamunique-1116835814_-_-
Content-type: text/plain

Thanks Chris,
I'll have a look at it later. Working with Smalltalk problems
currently :-)

I thought my request had disappeared into the ether !


Cheers,
Brett

On Tue, 2007-01-16 at 10:11 +1030, CFB Software wrote:
> Hi Brett,
>
> The following is some unfinished *experimental* code which uses the WinAPI
> function CreateProcess. It is in a very rough and ready state and was only
> ever run on XP but it should be enough to get you started,
>
> Regards,
>
> Chris Burrows
> CFB Software
> http://www.cfbsoftware.com/gpcp
>
> StdCoder.Decode E7rPXJqQntmPYB4.,0 1Ak...xf....58FTuPE,5TWyqlKrqKKrGrtumdGL
> mGorCquU2hgnRAXDFTvMUn7FTvMf1G2sETfPdPMHfP9fQbf9hOO9vR7ONbvMoedhgrRiioedFW
> UkTeoxhmhgnpZHZijJC7ONbvM0.,.S.eL3U.QklbcjRAktgdjZgZZh2hgnlsDor.kay4.qorGq
> mQiig76FUHZijJCbnWmqmqKWKqtcw7.,.FS0A,0EUb.0E.cUGpmWLuOpoKqvCbHZiYpedhA704
> TeKKw.bHfEWUmL.6..D.JP0E.CcIhgsNHT9N9ntQ8qorG4704D.CbB,708T1U.EuS.T.Nv,2U.
> 2.Yx,U00.bnUGLu8ro8quGrmCLWKqtE0E.kHU.EBU.U,U.I3l6w1.0ES9.o.AU0KyB.,UpA.6.
> e,0E.k.0.e0.,6Y1.y.o.AUGU.g.AUD,T.16,6.5.u,g.s.6.Um.3.16H6.5.1c.6.US.D.4.0
> E,k.800k,UbU.g.AUhU.o.AU3.5.1M3E2k.S00k,k.4.I.s66.UMU.I.c76.k.K,.u.0k1k.OD
> I.AU9W.g.AU1.B.y3g.c6c.3gwP.,6..EBE.0.4E.EJ2wAC.6.V2A.AUkE.8k.Up2.0k,k.e..
> q.yzayIWKJaKIECIn8Kc8rrCqmCrtin4qk2aoa0pb8Je0mfaKr0GRqHESpouqU0roin4qk2C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ZV3ik,H79,tJH1wYUwYUQZU2iVJCYCAZg2YnhgXhC69,tQ.6RZPRmGE
> uqr8rq..0HKod7Zdg2YnZiVJCN76VfQT1a2aGEqHEGLt66d8G9eHPM0aEd2e3BcIhV7AV7AVV,
> R10GRq1oZLBgdZi4xhmRedphbZhZxdWJhZRgo3ZkJij,ELWKc8rrUg2Yl2akAZvg,ak20Jty4g
> 7.A,KJbGpYmIEWmk0bG,s6,tJHfPAc7ZeTZe7hd3xdJZedQ5cQ22.58PTvQ99G1fP7Xc2imxBM
> G..H,.....A7EeWKtKqkGqIqk2a.qU3FECItK4in4qkWuIWcN31ELqE,5TeK45uPR9RZvPN9P9
> fQbf9b8RCIu8LqGomCrl0ks,.ELCoruKu.GomCrl0U1VVlm85Et...ktu0.Y62Um1,.d.,.HE.
> 2U..U,Iklb8IepZhZJinpZHFdKLq6F6.XDJ.QiiIepZhZ7F6.Zz.6.,UfW5UXW.2.52.CLLC3b
> 8Rn9P99F9vQ0ks,Uikwm46.Zz,0E.2.U6UOF.0E.cU.UiAcoZC.70,E0E...7,,M.,.,.,tcp0
> 0kXat.wnjl.k.E.0.3gwPE.6..EBU.U,.J,U.2m,.,.E4WDN.Ntarm3Wj.Jklb6.Qcj,.E6E..
> .F.,.mE.0U.2kLRC4mF3kwL,,AzJE.iJoYpY2H.nf1...
> --- end of encoding ---
>
> > -----Original Message-----
> > From: blackbox{([at]})nowhere.xy
> > Behalf Of brett s hallett
> > Sent: Monday, 11 December 2006 8:39 AM
> > To: BlackBox Mailing List
> > Subject: [BlackBox] - Running WIN2000 programs from a Blackbox button
> >
> > Hi,
> > I'm trying to execute a Win2000 task ( a .exe file, not a Win embedded
> > cmd) from a Blackbox program, but cant find any info on the
> > subject in the BlackBox 1.5 documentation, nor on Helmut
> > Zinn's useful site.
> >
> > The Win2000 task is GPG.EXE, I wish to encrypt/decypt files
> > 'on the fly'
> > from my Blackbox GUI interface without resorting to WIN2000
> > command line usage. I'm using Win pgp for compatibility with
> > Linux Kpgp as I pass files between the two O/s's
> >
> > Any help appreciated.
> >
> > --
> > Yours,
> > Brett
> >
> > --- BlackBox
> > --- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy
> >
>
> --- BlackBox

> --- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy
>
>
-- 
Yours,
Brett
--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy----boundary-LibPST-iamunique-1116835814_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIFRoYW5rcyBDaHJpcyxccGFyDQpJJ2xsIGhhdmUg
YSBsb29rIGF0IGl0IGxhdGVyLiAgV29ya2luZyB3aXRoIFNtYWxsdGFsayBwcm9ibGVtc1xwYXIN
CmN1cnJlbnRseSA6LSlccGFyDQpccGFyDQpJIHRob3VnaHQgbXkgcmVxdWVzdCBoYWQgZGlzYXBw
ZWFyZWQgaW50byB0aGUgZXRoZXIgISBccGFyDQpccGFyDQpccGFyDQpDaGVlcnMsXHBhcg0KQnJl
dHRccGFyDQpccGFyDQpPbiBUdWUsIDIwMDctMDEtMTYgYXQgMTA6MTEgKzEwMzAsIENGQiBTb2Z0
d2FyZSB3cm90ZTpccGFyDQo+IEhpIEJyZXR0LFxwYXINCj4gXHBhcg0KPiB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dJTjIwMDAgXHBhcg0KPiA+IGNvbW1hbmQgbGluZSB1c2FnZS4g
SSdtIHVzaW5nIFdpbiBwZ3AgZm9yIGNvbXBhdGliaWxpdHkgd2l0aCBccGFyDQo+ID4gTGludXgg
S3BncCBhcyBJIHBhc3MgZmlsZXMgIGJldHdlZW4gdGhlIHR3byBPL3Mnc1xwYXINCj4gPiBccGFy
DQo+ID4gQW55IGhlbHAgYXBwcmVjaWF0ZWQuXHBhcg0KPiA+IFxwYXINCj4gPiAtLVxwYXINCj4g
PiBZb3VycyxccGFyDQo+ID4gQnJldHRccGFyDQo+ID4gXHBhcg0KPiA+IC0tLSBCbGFja0JveFxw
YXINCj4gPiAtLS0gc2VuZCBzdWJqZWN0IEhFTFAgb3IgVU5TVUJTQ1JJQkUgdG8gYmxhY2tib3hA
b2Jlcm9uLmNoXHBhcg0KPiA+IFxwYXINCj4gXHBhcg0KPiAtLS0gQmxhY2tCb3hccGFyDQo+IC0t
LSBzZW5kIHN1YmplY3QgSEVMUCBvciBVTlNVQlNDUklCRSB0byBibGFja2JveEBvYmVyb24uY2hc
cGFyDQo+IFxwYXINCj4gXHBhcg0KLS0gXHBhcg0KWW91cnMsXHBhcg0KQnJldHRccGFyDQpccGFy
DQotLS0gQmxhY2tCb3hccGFyDQotLS0gc2VuZCBzdWJqZWN0IEhFTFAgb3IgVU5TVUJTQ1JJQkUg
dG8gYmxhY2tib3hAb2Jlcm9uLmNoXHBhcg0KfX0AM2lucA==
----boundary-LibPST-iamunique-1116835814_-_---
Received on Tue Jan 16 2007 - 21:43:33 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:31:58 UTC