Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Cannot run a .exe file from another .exe file

by AcidHawk (Vicar)
on Mar 23, 2006 at 07:42 UTC ( #538668=note: print w/ replies, xml ) Need Help??

in reply to Cannot run a .exe file from another .exe file

Hi damo666,

Here is a small test case that I build to test your problem. I compiled both .pl files with perl2exe as I don't use par. I do not experience any problems with the code below. Basically exe1.exe calls exe2.exe 10 times and then exits.

#! /usr/bin/perl use strict; use warnings; print "Inside exe1 about to run exe2 (10 times)\n"; my $count = 0; while ($count < 10) { system("exe2.exe"); $count++; } print "Finished running exe2\n";

#! /usr/bin/perl use strict; use warnings; print "Inside exe2.exe\n";

Hope this helps.

Of all the things I've lost in my life, its my mind I miss the most.

Comment on Re: Cannot run a .exe file from another .exe file
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://538668]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2015-11-25 08:59 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (672 votes), past polls