Script for hidden 100 MB partition on Win7

Discussion in 'Windows 7' started by cypher85, Mar 16, 2010.

  1. cypher85

    cypher85 MDL Junior Member

    Nov 14, 2009
    62
    29
    0
    Anyone can write a cmd script for me to assign a driveletter to the hidden 100 MB partition on win7 please?

    And maybe a script to remove the letter. :confused:
     
  2. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,501
    3,609
    120
    assign letter:
    diskpart
    > select disk 0
    > select partition 1
    > assign letter {%LETTER%}
    > exit

    remove letter:
    diskpart
    > select disk 0
    > select partition 1
    > remove
    > exit
     
  3. cypher85

    cypher85 MDL Junior Member

    Nov 14, 2009
    62
    29
    0
    When i copy and pasty it into a .cmd file nothing happens when i run it.
     
  4. herrkarl

    herrkarl MDL Junior Member

    Aug 3, 2009
    62
    11
    0
    Put all commands into a textfile (i called it script.txt) and use this command:

    diskpart /s script.txt

    script.txt consists of the commands freestyler told you:
    select disk 0
    select partition 1
    assign letter=E
    exit

    This will assign E: for the hidden partition, if drive letter exists, script stops with error message.
     
  5. timster

    timster MDL Senior Member

    Aug 23, 2009
    465
    344
    10
    no need for any scripts. go into the Computer Management control panel in Administrative tools. there you'll have access to all drives and can re-assign them
     
  6. cypher85

    cypher85 MDL Junior Member

    Nov 14, 2009
    62
    29
    0
    Now i got what i need. Thanks to all for the help.

    I like the method from herrkarl.