开发者

How can I close a Windows CMD window after I run a Perl program?

Is there a way to close a cmd window when a task is complete and also tell how many are already open?

system( qq{ start "List Perl files" perl c:/perlscripts/new_spider.pl $new_href 开发者_如何学运维} )


The command to close a window is

exit

However, when I tried your code (Win7) the cmd window closed without any help from me.

Take a look at new_spider.pl and double-check there's nothing holding the cmd window open in there.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜