View previous topic :: View next topic |
Author |
Message |
willis Newbie
Joined: 30 Apr 2001 Posts: 3
|
Posted: Fri Apr 05, 2002 7:20 am Post subject: List *all* files on a computer |
|
|
How can i list all files on my computer???
i need this ASAP!!!
thank you in advanced....
Willis |
|
Back to top |
|
|
Mac Professional Member
Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
|
Back to top |
|
|
Lucyfer Newbie
Joined: 06 Apr 2002 Posts: 16 Location: Quebec/Canada
|
Posted: Fri Apr 12, 2002 6:12 pm Post subject: |
|
|
Hi,
The 'List filelist' command has a big problem with attributes!
The following:
Code: | List create,1
List filelist,1,c:\,* |
Will list all directories and subdirectories, BUT the hidden/system ones..
Modified like this:
Code: | List create,1
List filelist,1,c:\,*SH |
Will list directories along with EVERY hidden/system entries, including files!
I've been making/maintaining a backup program for a while, and stumbled into this problem which I can't really patch. As soon as you specify more flags than 'D' or '*', files become involved...
I've been using a tweak to remove files from my list.
Using ',*SH' to fill a list then testing each entry to see if it's a file.
Code: |
rem -/- short part of by software. Close to self-explaining!
List Filelist,2,%%FromPath,*SH
Repeat
If @File(@Item(2),SHZ)
LIST Delete,2
Else
%%Zozo = @Next(2)
End
Until @Null(@Item(2))
|
I just discovered the second option of @item(x,y) while roaming through the forum, so I'll certainly be optimizing my softwares... I'm always using @next() or LIST Seek to move in a list, instead of pointing the item I want...
We learn everyday!
Cheers! |
|
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
|
|