how to use wxdir class?
Posted: Wed Mar 18, 2009 9:18 pm
hi...
this time i have problem like this:
i need a list of files which are stored in directory (and all subdirectories), however i don't want to include system's directories..
my project is only for windows (if that matters) and i used to get that list by making a command line file (the one with .cmd extantion) with written something like:
and executed it with wxexecute, which is fine, but only for small folders (less than 5 000 files) and that freezing when executing cmd is somewhat strange.
anyway, i wanted to make some limitations, that user can't choose system folders (well, not that he can't choose, but the program should ignore such folders, so when the user chooses directory c:\ it will give me a list of all files on this partition, except for those which are stored in c:\windows or c:\program files).
my problem is that i don't fully understand manual...
expecially that 'virtual/abstract class' thing (i mean wxdirtraverse)
can you point me the way how to get a list of files in specified path? (i think that dirtraverse class confuses me the most)
this time i have problem like this:
i need a list of files which are stored in directory (and all subdirectories), however i don't want to include system's directories..
my project is only for windows (if that matters) and i used to get that list by making a command line file (the one with .cmd extantion) with written something like:
Code: Select all
dir [path] /A: -D /S /B /O:E
anyway, i wanted to make some limitations, that user can't choose system folders (well, not that he can't choose, but the program should ignore such folders, so when the user chooses directory c:\ it will give me a list of all files on this partition, except for those which are stored in c:\windows or c:\program files).
my problem is that i don't fully understand manual...
expecially that 'virtual/abstract class' thing (i mean wxdirtraverse)
can you point me the way how to get a list of files in specified path? (i think that dirtraverse class confuses me the most)