| View previous topic :: View next topic |
| Author |
Message |
GregLand Valued Contributor


Joined: 15 Jun 2004 Posts: 212 Location: FRANCE
|
Posted: Fri Aug 25, 2006 3:36 pm Post subject: List all directory & Subdirectory of a directory |
|
|
Hello everybody...
Is there a way to list the folders & subfolders of a giver folder ?
I tried this
| Code: | LIST CREATE,1
LIST FILELIST,1,@WINDIR(),D
INFO @TEXT(1) |
But it only give the subfolders of @windir() and not for example folders and subfolders of @windir(s)
I would like to find ALL the folders and SubFolders of @WINDIR()
Is there a way to do it ?
Thanks a lot ! |
|
| Back to top |
|
 |
uvedese Contributor


Joined: 21 Jan 2006 Posts: 169 Location: Spain
|
Posted: Fri Aug 25, 2006 4:22 pm Post subject: |
|
|
Hi GregLand.
With the following code you will have a listing whit...
| Quote: | | ALL the folders and SubFolders of @WINDIR() |
| Code: |
list create,1
list filelist,1,@windir()\*.*,D
|
If you save "list 1" you can open it with Notepad...
| Code: |
list savefile,1,c:\temp\list.txt
shell open,c:\temp\list.txt
|
|
|
| Back to top |
|
 |
GregLand Valued Contributor


Joined: 15 Jun 2004 Posts: 212 Location: FRANCE
|
Posted: Fri Aug 25, 2006 4:38 pm Post subject: |
|
|
Hummm...
With an other example :
| Code: | LIST CREATE,1
LIST FILELIST,1,C:\*.*,D |
With this command, I can't get the system, system32 directory... just the subfolder of C:\
I tried this... (But I don't think if there are exactly all C:\ folders (System, hidden...))
| Code: | LIST CREATE,1
LIST FILELIST,1,C:\,*
LIST SAVEFILE,1,C:\ALL_C_DIR.TXT |
|
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Fri Aug 25, 2006 6:06 pm Post subject: |
|
|
Hi GregLand,
Try this:
| Code: | | list filelist,1,@windir(),*SHRD |
Enjoy
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
GregLand Valued Contributor


Joined: 15 Jun 2004 Posts: 212 Location: FRANCE
|
Posted: Fri Aug 25, 2006 6:45 pm Post subject: |
|
|
| Very Good... thanks a lot ! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|