Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enumerate Files returning duplicates
#1
I am enumerating a directory through the dialog but it is returning different paths to the same files.
Macro playground
Code:
Copy      Help
Dir d
foreach(d "C:\*" FE_Dir 4)
,str path=d.FileName(1)
,out path

For example, every file in My Documents is returning 4 times

C:\Documents and Settings\Eric\My Documents\temp Crypt\data\textStorage.dat
C:\Users\Eric\My Documents\temp Crypt\data\textStorage.dat
C:\Documents and Settings\Eric\Documents\temp Crypt\data\textStorage.dat
C:\Users\Eric\Documents\temp Crypt\data\textStorage.dat

I think this is related to special folders but I don't see how to exclude them


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)