PowerBuilder – Locating Windows folders

Posted on Wednesday, December 29th, 2010 at 8:20 pm in

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
*/

Top