我有一个在 Win32 ActivePerl 上运行的 Perl/POE/Tk 脚本,它使用system
. 我使用pp
. 我可以解压 exe 并在“zip”文件目录的根目录下查看可执行文件,但是当我运行 exe 并尝试使用系统调用的功能时,我得到“找不到文件”类型的错误;
'..\cpau' is not recognized as an internal or external command,
operable program or batch file.
cpau.exe 是包含的文件之一。
pp
被称为:
pp -i alias3.ico -g -a add_event.job -a add_rec.job -a CPAU.exe -a del_event.job -a del_rec.job -a dnscmd.exe -a eventcreate.exe -o alias_v_3-0.exe alias_poe_V-3_0_par.pl
我猜我需要调整system
呼叫的路径。我目前正在尝试使用默认路径;
system("cpau -dec -file add_rec.job -nowarn -wait");
我试过这个:
system("..\cpau -dec -file ..\add_rec.job -nowarn -wait");
推理 pp 将脚本放在 \scripts\ 目录中,但没有乐趣。有什么建议么?