本文介绍了在新打开的命令提示符下运行PERL脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要以下内容:
1.我想用PERL脚本打开一个新的命令提示符窗口.2.在该窗口上运行剩余的PERL脚本.
该怎么做?
如果您知道的话,请回答我.
I need the following:
1. I want to open a new command prompt window with PERL script
2. Run the remaining PERL script on that window.
How to do this?
Please answer me if you know.
推荐答案
perl -e "system 'start CMD /k perl -v'"
如果您在CMD提示符下将其作为命令运行,它将打开一个新的独立CMD窗口,并使其带有-v选项运行Perl,然后保持打开状态(或在运行后使用/c关闭-检查帮助其他选项的CMD).您可以将-v替换为要执行的另一个Perl脚本的名称.
If you run that as a command at your CMD prompt, it will open a new independent CMD window and cause it to run Perl with the -v option, and then remain open afterwards (or use /c to close after the run - check HELP CMD for other options). You could replace the -v with the name of another Perl script to execute.
这篇关于在新打开的命令提示符下运行PERL脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!