L
Luca Villa
Can I launch a DOS program from within a Perl script?
____
This is what I need to do:
I have many files like this:
c:\dir\pippo-red.html
c:\dir\paperino-yellow.html
c:\dir\pluto-red.html
c:\dir\gastone-green.html
I have a HTML2TXT.EXE program that converts files from html to txt
(removing the tags etc...).
The syntax of this program is: "HTML2TXT htmlfilename.htm >
txtfilename.txt"
I want to convert all and only the file which path-name match "c:\dir
\*-red.html". The output files must have the suffix "-text" in the
filename and ".txt" as extension.
In a few words the Perl script in this example must execute the
command two times like this:
HTML2TXT c:\dir\pippo-red.html > c:\dir\pippo-red-text.txt
HTML2TXT c:\dir\pluto-red.html > c:\dir\pluto-red-text.txt
Do you know how can I do this?
Thanks in advance for any help
____
This is what I need to do:
I have many files like this:
c:\dir\pippo-red.html
c:\dir\paperino-yellow.html
c:\dir\pluto-red.html
c:\dir\gastone-green.html
I have a HTML2TXT.EXE program that converts files from html to txt
(removing the tags etc...).
The syntax of this program is: "HTML2TXT htmlfilename.htm >
txtfilename.txt"
I want to convert all and only the file which path-name match "c:\dir
\*-red.html". The output files must have the suffix "-text" in the
filename and ".txt" as extension.
In a few words the Perl script in this example must execute the
command two times like this:
HTML2TXT c:\dir\pippo-red.html > c:\dir\pippo-red-text.txt
HTML2TXT c:\dir\pluto-red.html > c:\dir\pluto-red-text.txt
Do you know how can I do this?
Thanks in advance for any help