469,360 Members | 1,782 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,360 developers. It's quick & easy.

how to run an exe file from perl script

i am in need to run an .exe file from perl script and that exe file should accept an input from another file. please give me the solution to run an exe file from perl script
Jan 10 '08 #1
5 12685
use backtick command to run it.. as follows..
For example if want to kill an active excel session opened you can use the following.
`kill excel.exe`
Jan 10 '08 #2
savanm
85
hi

Small idea for u... This may help ful to u...

Get the input of exe from the perlscript as a first argument ....

Expand|Select|Wrap|Line Numbers
  1. $log=$ARGV[0];//$log contains the input of the exe 
  2.  
  3. system("Z:\\users\\Navas\\tools\\blackwell\\bw-zipfile-validation\\zip_validate.exe",$log);//pass here
  4.  
navas.M
Jan 10 '08 #3
numberwhun
3,503 Expert Mod 2GB
hi

Small idea for u... This may help ful to u...

Get the input of exe from the perlscript as a first argument ....

Expand|Select|Wrap|Line Numbers
  1. $log=$ARGV[0];//$log contains the input of the exe 
  2.  
  3. system("Z:\\users\\Navas\\tools\\blackwell\\bw-zipfile-validation\\zip_validate.exe",$log);//pass here
  4.  
navas.M
Really savanm, after over 70 posts to the forums, I would absolutely expect you to know that any code you post here needs code tags.

Regards,

Jeff
Jan 10 '08 #4
Thak you for giving me the solution for "how to run an exe file from perl script"...

Thank you once again...
Jan 19 '08 #5
you can use
system("filename.exe");

i am in need to run an .exe file from perl script and that exe file should accept an input from another file. please give me the solution to run an exe file from perl script
Jan 22 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Mike Bobbitt | last post: by
1 post views Thread by von | last post: by
2 posts views Thread by Lastknight | last post: by
4 posts views Thread by rsaharia | last post: by
rajiv07
3 posts views Thread by rajiv07 | last post: by
viktorijakup
4 posts views Thread by viktorijakup | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.