开发者

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

开发者 https://www.devze.com 2023-01-17 03:13 出处:网络
Is there a way to close a cmd window when a task is complete and also tell how many are already open?

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

精彩评论

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