Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can exec() open an exe file in windows?

Status
Not open for further replies.

madeout

Programmer
Mar 19, 2001
3
TH
I would like to write a script that opens editplus to edit a designated text file in win 2k. Can I do this?
 
Sure. I would suggest using the open() function to open a pipe to do this.

For example:

[tt]
open(EDP,"C:/path to editplus/editplus.exe filetoopen.txt |") || die("failed to open file: $!");
close(EDP);
[/tt]

That will only work if editplus.exe has the ability to open files via the command line.


Hope this helps.

-Vic vic cherubini
vikter@epicsoftware.com
====
Knows: Perl, HTML, JavScript, C/C++, PHP, Flash, Director
====
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top