Try using the system() builtin function. As you are redirecting the output of the batchfile to a file, there is no point in opening a pipe from that batch to your script.
If it doesn't help try to execute "$ENV{ComSpec} $pathcc\\$hldbat > $pathcc\\$txtname.txt".
Jenda
Enoch was right!
Enjoy the last years of Rome.
In reply to Re^3: Perl SYSCALL
by Jenda
in thread Perl SYSCALL
by tim.mcintosh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |