Get the Special Folders Directories (System plugin): Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Updated author and download links, and changed format of some pages.)
m (SF: Joelito -> Joel.)
Line 34: Line 34:
''Thanks to Hawthorn13 to told me to update this page :P''
''Thanks to Hawthorn13 to told me to update this page :P''


Page author: [[User:Joelito|Joelito]]
Page author: [[User:Joel|Joel]]

Revision as of 17:42, 27 April 2005

The Script

OutFile "SpecialFolders.exe"
Name "Get the Special Folders"
Caption "Get the Special Folders"
XPStyle "on"
 
!define CSIDL_COOKIES '0x21' ;Cookies path
!define CSIDL_HISTORY '0x22' ;History path
!define CSIDL_DESKTOP '0x0' ;Desktop path
!define CSIDL_PROGRAMS '0x2' ;Programs path
!define CSIDL_PERSONAL '0x5' ;My document path
!define CSIDL_FAVORITES '0x6' ;Favorites path
!define CSIDL_STARTUP '0x7' ;Startup path
!define CSIDL_RECENT '0x8' ;Recent documents path
!define CSIDL_SENDTO '0x9' ;Sendto documents path
!define CSIDL_STARTMENU '0xB' ;StartMenu path
!define CSIDL_FONTS '0x14' ;Fonts directory path
!define CSIDL_TEMPLATES '0x15' ;Windows Template path
 
Function ".onInit"
System::Call 'shell32::SHGetSpecialFolderPathA(i $HWNDPARENT, t .r1, i ${CSIDL_HISTORY}, b 'false') i r0'
MessageBox MB_OK|MB_ICONINFORMATION "$1"
Quit
FunctionEnd
 
Section "-boo"
;
SectionEnd

More CSIDL's in msdn

Thanks to Hawthorn13 to told me to update this page :P

Page author: Joel