New
#50
Could be the variables are unusable?
Nope, completely non-reserved variables, they just become empty in version 1, go figure...
This does not work:
$filesA =Get-ChildItem c:\tempA\
foreach ($fileA in $filesA){$fileA.Lenght}
This works:
$filesB =Get-ChildItem c:\tempB\
foreach ($fileB in $filesB){$fileB.Lenght}
No difference what so ever, and one works while the other does not.
EDIT: Just to clarify, it does not matter if I change the directory path, still the same issue
This is why I stick to C and Assembler when I code. At least they work.
In the above example using $fileA.Name instead of $fileA.Lenght works. What on earth is Windows doing with my variables/objects?
Thanks, must be that then I will give it one more try, then I give up for today.
EDIT: LOL! That's it! THANKS A TON!