Page 6 of 95 FirstFirst ... 456781656 ... LastLast
  1.    24 Jan 2017 #50
    Join Date : Feb 2015
    3rd Rock
    Posts : 697
    WinX Pro x64 IP v14986

    Could be the variables are unusable?
      My ComputersSystem Spec
  2.    24 Jan 2017 #51
    Join Date : Jan 2017
    Turku
    Posts : 1,679
    Windows 10 Pro IP Build 16299.19 (Branch: RS3 Release)

    Nope, completely non-reserved variables, they just become empty in version 1, go figure...
      My ComputersSystem Spec
  3.    24 Jan 2017 #52
    Join Date : Feb 2015
    3rd Rock
    Posts : 697
    WinX Pro x64 IP v14986

    Quote Originally Posted by slicendice View Post
    Nope, completely non-reserved variables, they just become empty in version 1, go figure...
    That is odd.
      My ComputersSystem Spec
  4.    24 Jan 2017 #53
    Join Date : Oct 2013
    A Finnish expat in Germany
    Posts : 12,661
    Windows 10 Pro
    Thread Starter

    Quote Originally Posted by slicendice View Post
    I HATE PS!!!

    It does not wanna co-operate with me. I write a function 2 times with different variable names but overall the functions are exactly the same, the first version does nothing, the second works great!

    WTF!?!?
    Care to explain? Which variables are you trying to use? PS command you use to create it / them?
      My ComputerSystem Spec
  5.    24 Jan 2017 #54
    Join Date : Jan 2017
    Turku
    Posts : 1,679
    Windows 10 Pro IP Build 16299.19 (Branch: RS3 Release)

    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
      My ComputersSystem Spec
  6.    24 Jan 2017 #55
    Join Date : Jan 2017
    Turku
    Posts : 1,679
    Windows 10 Pro IP Build 16299.19 (Branch: RS3 Release)

    This is why I stick to C and Assembler when I code. At least they work.
      My ComputersSystem Spec
  7.    24 Jan 2017 #56
    Join Date : Jan 2017
    Turku
    Posts : 1,679
    Windows 10 Pro IP Build 16299.19 (Branch: RS3 Release)

    In the above example using $fileA.Name instead of $fileA.Lenght works. What on earth is Windows doing with my variables/objects?
      My ComputersSystem Spec
  8.    24 Jan 2017 #57
    Join Date : Feb 2015
    3rd Rock
    Posts : 697
    WinX Pro x64 IP v14986

    Quote Originally Posted by slicendice View Post
    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
    You misspelled length in the first one.
      My ComputersSystem Spec
  9.    24 Jan 2017 #58
    Join Date : Jan 2017
    Turku
    Posts : 1,679
    Windows 10 Pro IP Build 16299.19 (Branch: RS3 Release)

    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!
      My ComputersSystem Spec
  10.    24 Jan 2017 #59
    Join Date : Feb 2015
    3rd Rock
    Posts : 697
    WinX Pro x64 IP v14986

    Quote Originally Posted by slicendice View Post
    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.
      My ComputersSystem Spec

 
Page 6 of 95 FirstFirst ... 456781656 ... LastLast


Similar Threads
Tutorial Category
Installation & Upgrade ESD to ISO - Create Bootable ISO from Windows 10 ESD File
As Microsoft has changed the upgrade method from ESD based upgrade to a UUP based, the method told in this tutorial does not work anymore with 15xxx and later builds. Please see UUP to ISO tutorial for a working method: UUP to ISO - Create...
Tutorials
Solved How to create a Windows 10 bootable install disk?
I've asked about this a long time ago. Several personal issue interfered with me getting computer work done. Now I'm starting a telecommuting job in a week, need to clean things up a bit. Just in case I have issues, I'd like to burn off a bootable...
Installation and Upgrade
Can I create Bootable USB for Win 10 from another computer?
Had tried to update the BIOS on my son's Alienware Aurora R4 so that we could install an upgraded graphics card (980 Ti). Used the Dell Support site - and was upgrading from Bios 7 to Bios 9 - would eventually go up to current version 11 before...
General Support
Solved How do I create a bootable USB drive with an ISO?
Tried looking this up online, but couldn't find any specific information. I'm running on Windows 10 Home, and I have a Windows 10 ISO I want to put in a flash drive so it's bootable. How do I do this?
Installation and Upgrade
Solved An Alternative to Create Bootable ISO from Windows 10 install.esd File
Here's an alternative in addition to Kari's Tutorial: ESD to ISO - Create Bootable ISO from Windows 10 ESD File - Windows 10 Forums https://www.youtube.com/watch?v=lJ8SCzhbycA NOTE: It is better to create an ISO contaning install.wim so if you...
Installation and Upgrade
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 01:58.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums