Click here to Skip to main content
15,887,967 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do I make two partitions in USB flash drive using C++ or C#. These partitions can be viewed in a tool when I use this code like in Bootice. And I want make the primary partition as bootable.
Posted
Comments
Richard MacCutchan 29-Nov-14 5:01am    
You would need to write a complete disk partition manager. That is not a trivial task.

1 solution

As per Richard's comment - no trivial task

you could start with something like this http://www.ranish.com/part/[^] and 'spawn' it off in its own process through the command line interface, but there's a 'disconnect' if you get errors that you'd have to be able to handle - that product also has source code that you may find useful - no doubt there are others like it, that you could possibly write an API for or export the useful functions as a dll

good luck
 
Share this answer
 
Comments
renukakurella 1-Dec-14 9:08am    
I need code to make two or more partitions in a usb flash drive in c++, even windows will show only one drive of USB.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900