UUP to ISO - Create Bootable ISO from Windows 10 Build Upgrade Files  

Page 6 of 136 FirstFirst ... 456781656106 ... LastLast

  1. Posts : 2,667
    Windows 11 21H2 (22000.593)
       #50

    Could be the variables are unusable?
      My Computers


  2. Posts : 4,666
    Windows 10 Pro x64 21H1 Build 19043.1151 (Branch: Release Preview)
       #51

    Nope, completely non-reserved variables, they just become empty in version 1, go figure...
      My Computers


  3. Posts : 2,667
    Windows 11 21H2 (22000.593)
       #52

    slicendice said:
    Nope, completely non-reserved variables, they just become empty in version 1, go figure...
    That is odd.
      My Computers


  4. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #53

    slicendice said:
    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 Computer


  5. Posts : 4,666
    Windows 10 Pro x64 21H1 Build 19043.1151 (Branch: Release Preview)
       #54

    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 Computers


  6. Posts : 4,666
    Windows 10 Pro x64 21H1 Build 19043.1151 (Branch: Release Preview)
       #55

    This is why I stick to C and Assembler when I code. At least they work.
      My Computers


  7. Posts : 4,666
    Windows 10 Pro x64 21H1 Build 19043.1151 (Branch: Release Preview)
       #56

    In the above example using $fileA.Name instead of $fileA.Lenght works. What on earth is Windows doing with my variables/objects?
      My Computers


  8. Posts : 2,667
    Windows 11 21H2 (22000.593)
       #57

    slicendice said:
    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 Computers


  9. Posts : 4,666
    Windows 10 Pro x64 21H1 Build 19043.1151 (Branch: Release Preview)
       #58

    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 Computers


  10. Posts : 2,667
    Windows 11 21H2 (22000.593)
       #59

    slicendice said:
    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 Computers


 

Tutorial Categories

UUP to ISO - Create Bootable ISO from Windows 10 Build Upgrade Files Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
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 15:06.
Find Us




Windows 10 Forums