> Maybe I don't understand - or maybe I am just simply wrong - but the system() command won't finish > until 'test.exe' has finished - so the loss of the env vars won't matter, will it ?


It can be made to work either way.

system ('notepad.exe');

Doesn't return until notepad is closed.

system ('start.exe', 'notepad.exe');

returns immediately after starting notepad -- as the default...

But, you can use the proper switch /w and specify that control does not pass back to the window from which start.exe was invoked until the new window is closed.

system ('start.exe', '/w', 'notepad.exe');

Which is the default in the first case anyway. And you can make the window notepad is opened in, minimized or maximized with /m or /max.

It's all about defaults and switches.

You ought to know by now you can make it do anything you want, if you slap it on the side just right, in exactly the right place, and just hard enough -- but not to hard! :)

ms



From: Sisyphus <[EMAIL PROTECTED]>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030313
X-Accept-Language: en-us, en
CC: [EMAIL PROTECTED]
Subject: Re: Environment variables
X-PMX-Version: 4.0.1.69468
Sender: [EMAIL PROTECTED]
X-BeenThere: [EMAIL PROTECTED]
X-Mailman-Version: 2.0.5
List-Unsubscribe: <http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users>,


<mailto:[EMAIL PROTECTED]>
List-Id: Discussions relating to ActivePerl on Win32 platforms <perl-win32-users.listserv.ActiveState.com>
List-Post: <mailto:[EMAIL PROTECTED]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Subscribe: <http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users>,


<mailto:[EMAIL PROTECTED]>
List-Archive: <http://mailarchive.activestate.com/browse/perl-win32-users/>
Date: Wed, 15 Oct 2003 20:04:17 +1000
X-Note: This E-mail was scanned for spam.
X-RCPT-TO: <[EMAIL PROTECTED]>

Jangale V-S SPEL-TIT wrote:

Now in the parent script when system command finishes, all the newly
defined environment variables (%ENV s) in test.exe and test1.cmd are
lost !

Maybe I don't understand - or maybe I am just simply wrong - but the system() command won't finish until 'test.exe' has finished - so the loss of the env vars won't matter, will it ?


Or is 'test1.cmd' still somehow running when test.exe and system() finish ?

Cheers,
Rob

--
Any emails containing attachments will be deleted from my ISP's mail server before I even get to see them. If you wish to email me an attachment, please provide advance warning so that I can make the necessary arrangements.


_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to