run a DOS program without a DOS console
am 14.10.2008 09:57:52 von Octavian Rasnita
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@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: run a DOS program without a DOS console
am 14.10.2008 10:16:57 von Angelos Karageorgiou
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@unix.gr
title:Technology Manager
tel;work:+30 211 7503 893
tel;fax:+30 211 7503 701
tel;cell:+30 6949120773
note;quoted-printable:
=
=
Linkedin Profile =
=
http://www.linkedin.com/in/unixgr
=
=
=
=
Personal Web Site
=
http://www.unix.gr
=
=
=
Blog Site
=
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@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--------------070206030102000704080003--
Re: run a DOS program without a DOS console
am 14.10.2008 10:21:29 von Gisle Aas
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@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs