forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


List all directory & Subdirectory of a directory

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
GregLand
Valued Contributor
Valued Contributor


Joined: 15 Jun 2004
Posts: 212
Location: FRANCE

PostPosted: Fri Aug 25, 2006 3:36 pm    Post subject: List all directory & Subdirectory of a directory Reply with quote

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
View user's profile Send private message Visit poster's website
uvedese
Contributor
Contributor


Joined: 21 Jan 2006
Posts: 169
Location: Spain

PostPosted: Fri Aug 25, 2006 4:22 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
GregLand
Valued Contributor
Valued Contributor


Joined: 15 Jun 2004
Posts: 212
Location: FRANCE

PostPosted: Fri Aug 25, 2006 4:38 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Fri Aug 25, 2006 6:06 pm    Post subject: Reply with quote

Hi GregLand,

Try this:

Code:
list filelist,1,@windir(),*SHRD


Enjoy
Hooligan

_________________
Hooligan

Why be normal?
Back to top
View user's profile Send private message
GregLand
Valued Contributor
Valued Contributor


Joined: 15 Jun 2004
Posts: 212
Location: FRANCE

PostPosted: Fri Aug 25, 2006 6:45 pm    Post subject: Reply with quote

Very Good... thanks a lot !
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group