Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Call external Windows/win32 executable

by bofh_of_oz (Hermit)
on Jul 07, 2005 at 12:54 UTC ( #473079=note: print w/replies, xml ) Need Help??

in reply to Call external Windows/win32 executable

You can use
$exitcode = system('path/to/your/file.exe arg1 arg2');

It will run the EXE, it will wait until it completes, AND you'll get the exit status...

An idea is not responsible for the people who believe in it...

Replies are listed 'Best First'.
Re^2: Call external Windows/win32 executable
by Ultra (Hermit) on Jul 07, 2005 at 13:04 UTC
    $exitcode = system('path/to/your/file.exe arg1 arg2'); $exitcode = $exitcode >> 8;

    see system for details.

    Dodge This!
Re^2: Call external Windows/win32 executable
by mosh (Scribe) on Jul 07, 2005 at 13:03 UTC
    I thought that "system" command work only in *nix OS, Do it work in Win OS as well ?


      Yes, it works ;-)

      Dodge This!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://473079]
[shmem]: looks like a 302 loop - "The document has moved here"
[Discipulus]: ..but only http not https
[shmem]: hmm after some looping I get it via http
[choroba]: After submitting the form, I'm getting "Sorry, we're really busy right now, please wait for a bit. This page will automagically refresh soon"
[hippo]: Still nothing via https
marto pictures someone trying to fix a problem, while the page gets battered by F5s :P

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (11)
As of 2018-02-20 11:59 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (271 votes). Check out past polls.