New
#50
Could be the variables are unusable?
Nope, completely non-reserved variables, they just become empty in version 1, go figure...
Care to explain? Which variables are you trying to use? PS command you use to create it / them?
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?
You misspelled length in the first one.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
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!
You're welcome. I learned a long time ago that a second set of eyes on code is always a beneficial thing. A second set of eyes on any written word in general, in fact.