Show disk partition style v1.0

Discussion in 'Application Software' started by wtarkan, Jan 27, 2016.

  1. wtarkan

    wtarkan MDL Member

    Sep 1, 2009
    137
    180
    10
    #1 wtarkan, Jan 27, 2016
    Last edited: Jan 31, 2016
  2. netlords

    netlords MDL Novice

    Jun 20, 2012
    29
    5
    0
    hi

    a little supplement from me - if the pc is booted you can check the boot-type via undocumented variable %FIRMWARE_TYPE%
    Typing echo %FIRMWARE_TYPE% in a cmd windows will return you legacy or not.
     
  3. urie

    urie Moderator
    Staff Member

    May 21, 2007
    8,644
    3,003
    300
    It just returns what it was asked to echo e.g. %FIRMWARE_TYPE% nothing else.
     
  4. netlords

    netlords MDL Novice

    Jun 20, 2012
    29
    5
    0
    What os do you have?

    Here (with Win 8.1) its returning:

    c:\Windows\system> echo %FIRMWARE_TYPE%
    UEFI
     
  5. rpo

    rpo MDL Senior Member

    Jan 3, 2010
    428
    153
    10
    And for my installation with Windows 10 Pro its returning "Legacy", as expected.
     
  6. Carlos Detweiller

    Carlos Detweiller MDL Spinning Tortoise

    Dec 21, 2012
    2,218
    1,810
    90
    Doesn't work on anything less than Windows 8, I guess. Windows 7 doesn't create that Environment Variable, and the command fails.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. CarloE

    CarloE MDL Novice

    Feb 2, 2016
    5
    0
    0
    Thank you that's true.
     
  8. urie

    urie Moderator
    Staff Member

    May 21, 2007
    8,644
    3,003
    300
    Correct I tested on windows 7 x64 :worthy:
     
  9. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,473
    625
    60
    #9 Flipp3r, Feb 2, 2016
    Last edited: Feb 3, 2016
    Where does %firmware_type% come from? I've used it & know it returns UEFI or Legacy but it's not listed as an environment variable when you type "set".

    Never mind, my friend Google found that it's a:
    By the way this tool does not help the novice user know if they have booted in UEFI or Legacy, which is probably what they want to know...