home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 May / Chip_2000-05_cd1.bin / zkuste / Perl / ActivePerl-5.6.0.613.msi / 䆊䌷䈹䈙䏵-䞅䞆䞀㡆䞃䄦䠥 / _827374589e27bd72ae4086eebca709f7 < prev    next >
Text File  |  2000-03-15  |  472b  |  20 lines

  1. <Job Id="SpecialFolder">
  2. <script language=PerlScript>
  3. $WshShell = $WScript->CreateObject("WScript.Shell");
  4. $numFolders = $WshShell->SpecialFolders->{Count};
  5. $title = "PerlScript & WSH Example";
  6. $style = 1;
  7.  
  8.  
  9. for($i=0; $i<$numFolders; $i++) {
  10. $ok_or_cancel =  $WshShell->Popup(
  11.                  $WshShell->SpecialFolders($i), 
  12.                  undef, 
  13.                  $title, 
  14.                  $style);
  15.  
  16. exit if ($ok_or_cancel == 2);
  17. }
  18.  
  19. </script>
  20. </job>