in reply to How to get location of Desktop folder on Win32
It's incredibly easy using Win32::OLE. You can use the application object named WScript.Shell.
You can inquire about lots of other special folders using this interface:use Win32::OLE; my $wsh = new Win32::OLE 'WScript.Shell'; my $desktop_path = $wsh->SpecialFolders('Desktop');
- Favorites
- Fonts
- MyDocuments
- NetHood
- PrintHood
- Programs
- Recent
- SendTo
- StartMenu
- Startup
- Templates
jdporter
The 6th Rule of Perl Club is -- There is no Rule #6.
|
---|
In Section
Seekers of Perl Wisdom