cyclone3d Posted January 29, 2013 Share Posted January 29, 2013 (edited) 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, 2013Bug 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 size5. 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 XPInterface: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.3Bug Fixes:1. Can now choose size of extended partition2. Can now create a primary partition if an extended partition already exists3. Can now assign drive letters when creating a partition4. Can now assign drive letters when editing a partitionFeatures: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 letterInterface: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.21. Removed old debug code, including a popup I forgot to comment out.2. Made functions out of some repeated code.----------------------------------------------------------------------Version 0.11. Changed code to work with AutoIT v32. 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 work2. "Defragment.." button does not work----------------------------------------------------------------Current source and executable:diskpartitioner_0.4.zip (source)DiskPartitioner_0.4_exe.zip (executable) Edited March 12, 2013 by cyclone3d donhorn20 and meoit 2 Link to comment Share on other sites More sharing options...
ModemJunki Posted January 29, 2013 Share Posted January 29, 2013 Looking forward to it - I'm scripting Diskpart all the time and always willing to look at something new. Always carry a towel. Link to comment Share on other sites More sharing options...
cyclone3d Posted January 31, 2013 Author Share Posted January 31, 2013 (edited) I think I have everything working now as it would have been in the original version. I will be adding missing features now. Edited January 31, 2013 by cyclone3d Link to comment Share on other sites More sharing options...
cyclone3d Posted February 1, 2013 Author Share Posted February 1, 2013 I added a "bugs" section to the OP. Link to comment Share on other sites More sharing options...
cyclone3d Posted February 4, 2013 Author Share Posted February 4, 2013 Version 0.3 released. Added Change log section to OP. Link to comment Share on other sites More sharing options...
cyclone3d Posted February 15, 2013 Author Share Posted February 15, 2013 Added upcoming changes in OP. Link to comment Share on other sites More sharing options...
Pino Posted February 20, 2013 Share Posted February 20, 2013 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=146766196I use German Version of Windows XP.Here the screenshot:https://www.dropbox.com/s/0wrh92xqj904wmi/DiskpartGUI-xp.png?n=146766196Pino Link to comment Share on other sites More sharing options...
cyclone3d Posted February 23, 2013 Author Share Posted February 23, 2013 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=146766196I use German Version of Windows XP.Here the screenshot:https://www.dropbox.com/s/0wrh92xqj904wmi/DiskpartGUI-xp.png?n=146766196PinoSo 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 More sharing options...
cyclone3d Posted February 26, 2013 Author Share Posted February 26, 2013 ok, will definitely take a look at XP once I am done fixing the bugs I am working on right now. Thanks for the info. Link to comment Share on other sites More sharing options...
AI4mfe Posted March 4, 2013 Share Posted March 4, 2013 Thank you for your work. I will check the Version 0.3 with LANDesk Provisioning and Windows PE Link to comment Share on other sites More sharing options...
AI4mfe Posted March 4, 2013 Share Posted March 4, 2013 (edited) In Windows 7 (German) I have the same language issues like cycloneIn Windows PE (English) the Format... Button is not workingAlso the Partition Creation Window seems a bit Buggy. When I use the controls (Slider or up/down-arrows) I get a minus value. Edited March 4, 2013 by AI4mfe Link to comment Share on other sites More sharing options...
cyclone3d Posted March 4, 2013 Author Share Posted March 4, 2013 In Windows 7 (German) I have the same language issues like cycloneIn Windows PE (English) the Format... Button is not workingAlso 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 More sharing options...
cyclone3d Posted March 7, 2013 Author Share Posted March 7, 2013 Disks not showing up in XP has been fixed.Have a few more things to finish up and test abefore I release version 0.4. AI4mfe 1 Link to comment Share on other sites More sharing options...
cyclone3d Posted March 12, 2013 Author Share Posted March 12, 2013 Version 0.4 has been released. Link to comment Share on other sites More sharing options...
Pino Posted March 13, 2013 Share Posted March 13, 2013 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.pngI use German Version of Windows XP.Here the screenshot:https://www.dropbox.com/s/0uo1kllejb5lx7r/DiskpartGUI-xp2.pngFor run as Admin in the Windows Vista/7/8/2008,2008R2/2012it is a good idea to use in your code the line#RequireAdminProblem in your code: Here's a better way to test the Windows systemsTo check the old Windows Systems like Windows NT4, 2000, 2003, 2003R2, XP run this lineStringInStr( ",WIN_2003,WIN_XP,WIN_2000,WIN_NT4,", @OSVersion ) > 0To check the newer Windows System like Windows Vista/7/8/2008,2008R2/2012 run this lineStringInStr( ",WIN_2003,WIN_XP,WIN_2000,WIN_NT4,", @OSVersion ) = 0Pino Link to comment Share on other sites More sharing options...
cyclone3d Posted March 23, 2013 Author Share Posted March 23, 2013 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 More sharing options...
Pino Posted March 28, 2013 Share Posted March 28, 2013 sorry I'm late.Here are the results: C:>diskpartMicrosoft DiskPart Version 5.1.3565Copyright © 1999-2003 Microsoft Corporation.Auf Computer: MULTIBOOT1DISKPART> list disk Datentr. Status Größe Frei Dyn GPT -------- ---------- ------- ------- --- --- 0 Online 20 GB 0 B 1 Online 20 GB 0 BDISKPART> sele disk 0Datenträger 0 ist der derzeit gewählte Datenträger.DISKPART> detail diskVBOX HARDDISKDatenträger-kennung : C5DAC5DATyp : IDEBus : 0Ziel : 0LUN-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 OKDISKPART> sele disk 1Datenträger 1 ist der derzeit gewählte Datenträger.DISKPART> detail diskVBOX HARDDISKDatenträger-kennung : C5E9C5E9Typ : IDEBus : 0Ziel : 1LUN-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 OKDISKPART>Pino Link to comment Share on other sites More sharing options...
XByte Posted June 16, 2013 Share Posted June 16, 2013 @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 More sharing options...
cyclone3d Posted May 23, 2014 Author Share Posted May 23, 2014 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 More sharing options...
cyclone3d Posted July 25, 2014 Author Share Posted July 25, 2014 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now