Jump to content

find all directories on a drive


t0ddie
 Share

Recommended Posts

so would i change all the "and" s to "or" ?

or should i do this

$String = '|' & @TempDir & '|' & @systemdir & '|' & @AppDataCommonDir & '|' & @DesktopCommonDir & '|' & @DocumentsCommonDir & '|' & @FavoritesCommonDir & '|' & @ProgramsCommonDir & '|' & @StartMenuCommonDir & '|' & @StartupCommonDir & '|' & @AppDataDir & '|' & @DesktopDir & '|' & @MyDocumentsDir & '|' & @FavoritesDir & '|' & @ProgramsDir & '|' & @StartMenuDir & '|' & @StartupDir & '|' & @UserProfileDir

If Not stringinstr($String,'|' & $root & $Filefound & '|') Then

$FileList = $FileList & $root & $FileFound & "\" & @LF

EndIf

EndIf

$FileFound = FileFindNextFile($h)

WEnd

FileClose($h)

EndIf

Wend

EndIf

$FileList = StringSplit($FileList,@lf)

endif

would that work? or is there a better way???

~the NOOB :ph34r:

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...