Source code of Windows XP (NT5)
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
777 B

  1. require 'isolang.pl';
  2. use Cwd;
  3. $nttree = $ENV{ '_NTTREE' };
  4. $TempDir = $ENV{ 'TMP' };
  5. $BootFlopTemp = $TempDir . "\\bootflop";
  6. mkdir $BootFlopTemp, 1 if not -e $BootFlopTemp;
  7. ### Need to get date for floppy timestamp.
  8. my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst)
  9. = localtime(time);
  10. $TimeStamp = sprintf( "%0.2d/%d/%0.2d,12:00:00", $mon+1, $mday, $year + 1900 );
  11. $HomeDir = cwd();
  12. foreach $ProdTree ( 'WKS', 'SRV', 'ENT', 'DTC' ) {
  13. ### Build the images
  14. for ( $x = 0; $x < 4; $x++ ) {
  15. chdir "$nttree\\congeal_scripts\\$ProdTree";
  16. system sprintf "fcopy -f -3 $TimeStamp -lW2\U$ProdTree\EB%d_$iso_lang{$language} \@b%d.txt $BootFlopTemp\\_disk%d.$ProdTree", $x + 1, $x, $x + 1;
  17. chdir $HomeDir;
  18. }
  19. }