Get "My Documents" folder path: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
m (Wikipedia python library) |
m (Updated author and download links, and changed format of some pages.) |
||
Line 28: | Line 28: | ||
</highlight-nsis> | </highlight-nsis> | ||
Page author: Joelito | Page author: [[User:Joelito|Joelito]] |
Revision as of 12:36, 23 April 2005
Description
Superseded by: NSIS RC1 - $DOCUMENTS variable.
This script detects the user's "My Documents" folder path.
The Script
; This Function will display "My Documents" Folder path. ; Now it suppose to work with multiple users. ; Created by Lobo Lunar Name "Get My Documents Path" OutFile "GetMyDocPath.exe" Function "GetMyDocs" ReadRegStr $0 HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" Personal FunctionEnd Function .onInit Call "GetMyDocs" MessageBox MB_OK|MB_ICONINFORMATION $0 Quit FunctionEnd Section -Ghost ; Nothing here, :p Sectionend
Page author: Joelito