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.

18 lines
443 B

  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. for($i=0; $i<$numFolders; $i++) {
  8. $ok_or_cancel = $WshShell->Popup(
  9. $WshShell->SpecialFolders($i),
  10. undef,
  11. $title,
  12. $style);
  13. exit if ($ok_or_cancel == 2);
  14. }
  15. </script>
  16. </job>