> >From: Daniel Berger <email@example.com> > >seems > >to work, except that if I attempt to pass an environment > string, it causes > >the app to die instantly. What am I doing wrong? > > > The 'notepad' process requires 'SystemRoot' environment > variable. D'oh! > CreateProcess = Win32API.new('kernel32','CreateProcess', params, 'I') > startinfo = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] > > p create() # ok > p create('environment'=>"PATH=C:\\;LIB=C:\\lib") > > Regards, > > Park Heesob Works great, thanks. Dan This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
on 2006-05-03 18:57