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.
精彩评论