hohausfn
25th March 2009 14:52 UTC
Commandline
Hey everyone,
i have a question. I try to do an commandline command in nsis.
This is my Code:
Exec "dir $verzeichnis_karten *$datum /B > $INSTDIR\maps.txt"
I want all Files from a directory in a txt-File, but it doesn't work. Could anyone help me?
Thanks
Anders
25th March 2009 15:04 UTC
you can not use redirection with Exec*, you need to use one of the exec plugins, but that is beside the point. What you should do is to use the built in FindFirst,FindNext,FindClose commands
hohausfn
25th March 2009 15:20 UTC
i have in my directory some files:
aa2008.01.zip
ab2008.01.zip
ac2008.01.zip
and now i have to know which files are in the directory.
how can i use the FindFirst here?
Sorry but i'm new on this programm ...
Comperio
26th March 2009 02:01 UTC
If you want a pre-built solution, you might have a look at the locate function documented in appendix E of the NSIS help file.
Or for other examples, try searching the forum.