Fellow monksters: I would like to open explorer.exe (aka windows file manager) from a Perl script and want to point it at a specific directory. This sounds easy enough, but for some reason, things are not going well.
Using ActiveState B633 (5.6.1), the following code segment is sufficient for WinNT and Win2k but does not work under Windows XP or Windows 2003:
if (-f "c:\\windows\\explorer.exe") {
exec("c:\\windows\\explorer.exe .");
}
else {
exec("c:\\winnt\\explorer.exe .");
}
I was wondering if there was a way to do this with Win32::OLE. Looking around Google, CPAN, Super Search, and the Active State docs, I can't find an OLE example for manipulating Windows Explorer. There are excellent examples for Excel, Word, and Internet Explorer. Any ideas?