/IronPython_Main/Runtime/Tests/LinqDlrTests/testenv/perl/eg/windows script host/specialfolder.wsf
# · Unknown · 18 lines · 16 code · 2 blank · 0 comment · 0 complexity · 92fe8e67133ff6058f98f4cc8804411a MD5 · raw file
- <Job Id="SpecialFolder">
- <script language=PerlScript>
- $WshShell = $WScript->CreateObject("WScript.Shell");
- $numFolders = $WshShell->SpecialFolders->{Count};
- $title = "PerlScript & WSH Example";
- $style = 1;
-
- for($i=0; $i<$numFolders; $i++) {
- $ok_or_cancel = $WshShell->Popup(
- $WshShell->SpecialFolders($i),
- undef,
- $title,
- $style);
-
- exit if ($ok_or_cancel == 2);
- }
- </script>
- </job>