Posts: 31
Threads: 9
Joined: Aug 2011
Reputation:
0
Hi, I saw this video: <!-- m --><a class="postlink" href="http://www.youtube.com/watch?v=UwGjbPwrMXo">http://www.youtube.com/watch?v=UwGjbPwrMXo</a><!-- m --> to list all files in a directorie, however I need to list all sub directories, like this:
->Main dir
-->file1
-->Sub dir
--->file2
I need the app to list it this way:
file1
Sub dir/file2
How can I do this?
Posts: 31
Threads: 9
Joined: Aug 2011
Reputation:
0
Thanks for the code, but it's not working exactly as I want, the application it's showing the absolute path, like this:
C:\Users\REMOVED\Desktop\list\list\bin\Debug\actlist.vshost.exe
C:\Users\REMOVED\Desktop\list\list\bin\Debug\actlist.vshost.exe
C:\Users\REMOVED\Desktop\list\list\bin\Debug\act\ddlist.xml
I want it only to show act\ddlist or the file if it's not in a sub dir.
Posts: 31
Threads: 9
Joined: Aug 2011
Reputation:
0
Well, almost there! Idk why, but it writes the last file twice o.O
Edit: Not only the last file but all of them...
Posts: 31
Threads: 9
Joined: Aug 2011
Reputation:
0
Not working, it repeats some files :S
Edit: Forget it, my mistake! Thank you! You're a life saver!
Posts: 1,006
Threads: 111
Joined: Jul 2010
Reputation:
1
Ah, sounds good! I am glad I could help!! Do you fully understand the code?