![]() |
Directory Listing in NSIS
Hello,
Is there a way to get a directory listing into a variable? There is a random directory generated by Thunderbird's createprofile option that I need to install some files into. I've tried to use this line: nsExec::Exec 'dir "$APPDATA\Thunderbird\Profiles\default"' but this gives me "error" in the stack. Is there some easier way to do this? Thanks! |
To enumerate directories you have to use FindFirst, FindNext and FindClose.
|
Ah... Thank you very much. I didn't know the Find commands included directories and not just files.
Thanks again. |
very old question, i needed that hint, here the result
PHP Code:
- search starting folder and grab all files (filelist.ini) - write subfolders into foldlist.ini - then readout foldlist.ini and grab files and folders again $R9 is filelist-pointer $R8 is folderlist-pointer $R7 is helper-pointer $R8 raises and when $R7 > $R8 (or $3 is empty) the end of the folder list was reached. modify function "filewrite" as you wish (other output format eg.) HTH |
| All times are GMT. The time now is 05:48. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.