Jump to content

DiskPartitioner (Microsoft Diskpart GUI).


cyclone3d
 Share

Recommended Posts

I am working on updating the old DiskPartitioner code to work in Windows 7 and hopefully Windows 8.

Original source is here:

At one point a version that supposedly worked with Windows 7 was released on a different forum, but the download has since disappeared.

More options will also be added. I really want to make it be able to do absolutely everything that can be done from the command line.

Any feedback and/or requests are welcome.

----------------------------------------------------------------

Upcoming changes in next release

----------------------------------------------------------------

???

----------------------------------------------------------------

Change Log (also included with the source)

----------------------------------------------------------------

Version 0.4 - released Mar 11, 2013

Bug Fixes:

1. Fixed the partition max size field in the create partition window. Should be good up to at least a petabyte.

Was cutting off part of the text before.

2. Buttons on Create Partition Form work after changing size with up/down control / text input.

3. Create Partition - slider now fixed - should work for partitions up to almost 2 petabytes in size ((2^31) - 1 megabytes)

4. Create Partition - up/down now fixed - should work for partitions up to almost 2 petabytes in size

5. Fixed drive information display in both the main window and in the create partition window.

6. Drive capacity calculation. Was using 1000MB as 1GB before. Now correctly using 1024MB as 1GB.

7. Main window - fixed the width of the first column in the partition list.

8. Disks now show up in XP

Interface:

1. Create Partition - Slider now has a tooltip so you can see what value the slider has while moving it.

2. Change Disk - window now wider in order to eliminate having to scroll to the right to see all the list fields.

3. Create Partition - When using the up/down control, the pie chart only updates once you release the control.

The flickering was very annoying, so it has been changed.

----------------------------------------------------------------------

Version 0.3

Bug Fixes:

1. Can now choose size of extended partition

2. Can now create a primary partition if an extended partition already exists

3. Can now assign drive letters when creating a partition

4. Can now assign drive letters when editing a partition

Features:

1. Added more info to main screen.

2. Added the ability when creating or editing a partition to let it assign the first available drive letter

Interface:

1. Changed top of main screen layout.

2. Placeholder in add partition screen for setting an offset.

Other:

1. Moved more repeated code into functions.

----------------------------------------------------------------------

Version 0.2

1. Removed old debug code, including a popup I forgot to comment out.

2. Made functions out of some repeated code.

----------------------------------------------------------------------

Version 0.1

1. Changed code to work with AutoIT v3

2. Works in Windows 7

----------------------------------------------------------------

Known Bugs:

Creating Partitions:

1. When creating logical partitions, it does not limit it to available size on the extended partition.

3. Will let you try to make more primary partitions if the maximum number is already on the disk. Comes back with success instead of failed even though no partition was actually made. (Feb. 4, 2013)

Other:

1. "Check..." button does not work

2. "Defragment.." button does not work

----------------------------------------------------------------

Current source and executable:

diskpartitioner_0.4.zip (source)

DiskPartitioner_0.4_exe.zip (executable)

Edited by cyclone3d
Link to comment
Share on other sites

  • 2 weeks later...

Hi cyclone3d,

I have trouble with the Program.

I use German Version of Windows 7 and Windows 8.

Here the screenshot:

https://www.dropbox.com/s/xf9smj62q6mu1w2/DiskpartGUI.png?n=146766196

I use German Version of Windows XP.

Here the screenshot:

https://www.dropbox.com/s/0wrh92xqj904wmi/DiskpartGUI-xp.png?n=146766196

Pino

So basically, it looks like XP is not picking up any drives, correct?

I will have to set up an XP machine to see what is going on as I have no machines running XP any more. Will look into it after I finish fixing bugs I am currently working on.

Anybody else not having drives show up in XP?

Link to comment
Share on other sites

In Windows 7 (German) I have the same language issues like cyclone

In Windows PE (English) the Format... Button is not working

Also the Partition Creation Window seems a bit Buggy. When I use the controls (Slider or up/down-arrows) I get a minus value.

Edited by AI4mfe
Link to comment
Share on other sites

In Windows 7 (German) I have the same language issues like cyclone

In Windows PE (English) the Format... Button is not working

Also the Partition Creation Window seems a bit Buggy. When I use the controls (Slider or up/down-arrows) I get a minus value.

I am not surprised that the format button is not working in PE as the original code just calls the Windows format dialogue. This will most likely be changed in a future version as it is the same reason why some of the check and defrag buttons are not working.

The slider and up/down arrows should be fixed in version 0.4. The default 32,767 limit of the slider and up/down arrows is what would have been causing this.

Link to comment
Share on other sites

Hi cyclone3d,

it still does not work.

I use German Version of Windows 7 and Windows 8.

Here the screenshot:

https://www.dropbox.com/s/0gue94aa8i1f8f6/DiskpartGUI2.png

I use German Version of Windows XP.

Here the screenshot:

https://www.dropbox.com/s/0uo1kllejb5lx7r/DiskpartGUI-xp2.png

For run as Admin in the Windows Vista/7/8/2008,2008R2/2012

it is a good idea to use in your code the line

#RequireAdmin

Problem in your code:

Here's a better way to test the Windows systems

To check the old Windows Systems like Windows NT4, 2000, 2003, 2003R2, XP run this line

StringInStr( ",WIN_2003,WIN_XP,WIN_2000,WIN_NT4,", @OSVersion ) > 0

To check the newer Windows System like Windows Vista/7/8/2008,2008R2/2012 run this line

StringInStr( ",WIN_2003,WIN_XP,WIN_2000,WIN_NT4,", @OSVersion ) = 0

Pino

Link to comment
Share on other sites

  • 2 weeks later...

Pino - I am betting that the field length is different between different versions.

For each language, it will have to be localized.

I can see if I can make it work properly with German IF you post the exact output of these diskpart commands (spaces must be in there as well)

list disk

detail disk

Link to comment
Share on other sites

sorry I'm late.

Here are the results:

C:>diskpart

Microsoft DiskPart Version 5.1.3565

Copyright © 1999-2003 Microsoft Corporation.

Auf Computer: MULTIBOOT1

DISKPART> list disk

Datentr. Status Größe Frei Dyn GPT

-------- ---------- ------- ------- --- ---

0 Online 20 GB 0 B

1 Online 20 GB 0 B

DISKPART> sele disk 0

Datenträger 0 ist der derzeit gewählte Datenträger.

DISKPART> detail disk

VBOX HARDDISK

Datenträger-

kennung : C5DAC5DA

Typ : IDE

Bus : 0

Ziel : 0

LUN-Kennung : 0

Volume Bst Bezeichnung DS Typ Größe Status Info

---------- --- ----------- ----- ---------- ------- --------- --------

Volume 1 C Multiboot1 NTFS Partition 8001 MB OK System

Volume 2 E NTFS Partition 6001 MB OK

Volume 3 F NTFS Partition 6464 MB OK

DISKPART> sele disk 1

Datenträger 1 ist der derzeit gewählte Datenträger.

DISKPART> detail disk

VBOX HARDDISK

Datenträger-

kennung : C5E9C5E9

Typ : IDE

Bus : 0

Ziel : 1

LUN-Kennung : 0

Volume Bst Bezeichnung DS Typ Größe Status Info

---------- --- ----------- ----- ---------- ------- --------- --------

Volume 4 G Multiboot2 NTFS Partition 6503 MB OK

Volume 5 H NTFS Partition 6503 MB OK

Volume 6 I NTFS Partition 7460 MB OK

DISKPART>

Pino

Link to comment
Share on other sites

  • 2 months later...

@Cyclone3D

are you still developing this nice little tool?

I'd wish for an option to shrink/extend a selected volume. The shrink size should be variable, up to the minimum size possible (querymax). The extend size should be variable as well, up to the space available on that disk.

Link to comment
Share on other sites

  • 11 months later...

I am going to restart developement on this.

Since I had gotten requests for different languages, that is the first thing I am going to implement.

The program will move from being a single exectuable to being an executable with an INI file for each language. The language INI files will be in a sub-folder under the executable file.

This way, it will be super easy for anybody to add additional languages. An INI file template will be included with instructions, even though it should really be pretty self explanitory.

Link to comment
Share on other sites

  • 2 months later...

I discovered a bug in the create partition portion of the program.

If you create an extended partition, and then go to create a logical partition, it does not detect the available space in the logical partition. It only looks at the unpartitioned space.

I will try to have this fixed when I release the next version which will include the ability to create custom language files.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...