PowerBuilder – Locating Windows folders
Here is an easy way to find the paths to the various Windows folders.
oleobject lole_wshell
lole_wshell = create oleobject
lole_wshell.connecttonewobject( "wscript.shell")
is_mydocspath = lole_wshell.SpecialFolders("MyDocuments")
IF IsValid(lole_wshell) THEN Destroy lole_wshell
/* other folders:
AllUsersDesktop
AllUsersStartMenu
AllUsersPrograms
AllUsersStartup
Desktop
Favorites
Fonts
MyDocuments
NetHood
PrintHood
Programs
Recent
SendTo
StartMenu
Startup
Templates
*/