both methods don't seem to work when the directoy is empty. method #2 always returns a dot ($1=.), unregarding whether the directory is empty or not. when i use either method to find a specific file, both methods work.# method 1
IfFileExists "$WINDIR\Prefetch\*.*" NotEmpty
# method 2
FindFirst $0 $1 "$WINDIR\Prefetch\*.*"
i tested the same code on different directories without any problems. any ideas?