Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
591 B

  1. open foo, $ARGV[0] or die "can't open $ARGV[0]";
  2. $count = 0;
  3. while (<foo>) {
  4. ($path,$created) = split (/,/, $_);
  5. #throw away ones with NULL path.
  6. $path =~ /NULL/ and next;
  7. #throw away beta reports
  8. $path =~ /WhistlerBeta\\archived/ and next;
  9. if ($path =~ /Mini/) {
  10. $path =~ s/.*?\_(\w+\@Mini.cab).*/$1/;
  11. } else {
  12. $path =~ s/.*?\_(\w+\.cab).*/$1/;
  13. }
  14. ($year,$month,$day) = split(/[- ]/,$created);
  15. $month =~ s/^0//;
  16. $day =~ s/^0//;
  17. print"\\\\tkwucdfsb01\\ocaarchive\\$month-$day-$year\\$path\n";
  18. }