Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Searching for folder
#11
Hello again,

I was wondering how i would set up comparing 2 different folders to see if the content is the same or not. I tried to use
Code:
Copy      Help
Dir du
foreach(du "$desktop$\Foler2\*" FE_Dir 2)
,str sPath=du.FileName(1)

foreach(du "$desktop$\Foler1\*" FE_Dir 2)
,str sPath1=du.FileName(1)

if sPath1=sPath
,out "Same"
else
,out "Different"

the outcome is always "Different", except for the the folders are empty.

What am I doing wrong?

Help would be grateful,

Thank you


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)