Thanks, Alexander.
Actually I want to write an utility to run "DOS" commands on windows xp/vista, "dir" command is one of them. I would use other commands in the future, such as xcopy, ftp etc.
Currently I'm truely going to output the files recursively in current folder.