run a DOS program without a DOS console
Hi,
I've created a .exe program with perlapp.exe and I want to run an external program in it, however I would like that console not to appear.
Now I use:
system("7z x ....");
Is there another way of running this command without to appear a dos console?
Thank you.
Octavian
_______________________________________________
ActivePerl mailing list
ActivePerl [at] listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: run a DOS program without a DOS console
This is a multi-part message in MIME format.
--------------070206030102000704080003
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Octavian Rasnita wrote:
> Hi,
>
> I've created a .exe program with perlapp.exe and I want to run an external program in it, however I would like that console not to appear.
>
> Now I use:
>
> system("7z x ....");
>
> Is there another way of running this command without to appear a dos console?
>
Try Win32::Process, CREATE_NO_WINDOW , I think
--------------070206030102000704080003
Content-Type: text/x-vcard; charset=utf-8;
name="angelos.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="angelos.vcf"
begin:vcard
fn:Angelos Karageorgiou
n:Karageorgiou;Angelos
org:Vivodi Telecommunications S.A.
email;internet:angelos [at] unix.gr
title:Technology Manager
tel;work:+30 211 7503 893
tel;fax:+30 211 7503 701
tel;cell:+30 6949120773
note;quoted-printable:=0D=0A=
=0D=0A=
Linkedin Profile =
=0D=0A=
http://www.linkedin.com/in/unixgr=0D=0A=
=0D=0A=
=0D=0A=
=0D=0A=
Personal Web Site=0D=0A=
http://www.unix.gr=0D=0A=
=0D=0A=
=0D=0A=
Blog Site=0D=0A=
http://angelos-proverbs.blogspot.com
x-mozilla-html:FALSE
url:http://www.linkedin.com/in/unixgr
version:2.1
end:vcard
--------------070206030102000704080003
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
ActivePerl mailing list
ActivePerl [at] listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--------------070206030102000704080003--
Re: run a DOS program without a DOS console
On Oct 14, 2008, at 9:57 , Octavian Rasnita wrote:
> Hi,
>
> I've created a .exe program with perlapp.exe and I want to run an
> external program in it, however I would like that console not to
> appear.
>
> Now I use:
>
> system("7z x ....");
>
> Is there another way of running this command without to appear a dos
> console?
You need to call Win32::SetChildShowWindow(0) before you call system().
http://docs.activestate.com/activeperl/5.10/lib/Win32.html#s etchildshowwindow
Regards,
Gisle
_______________________________________________
ActivePerl mailing list
ActivePerl [at] listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs