views:

75

answers:

1

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 } )
+1  A: 

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.

Ed Guiness