I Want To Make A Utility Like The Old DOS Command "rdisk" In C++.
The Things I Want It To Be Able To Do Are:
WIN: Be Able To Specify The Drive Letter (Like rdisk's /:Z)
UNIX: Be Able To Specify The Mount Point (/mnt/rdisk or /media/somthing, etc)
BOTH: Make A RamDisk Of A Specified Size (Default To Be 50 MB)
WIN: Make It The FAT16 Filesystem (And Check To See If ITs Too Big For That, If It Is Make It FAT32)
UNIX: Make It The Extended 2 Filesystm (Again If Too Big [dought it] Ext3)
BOTH: I Can Do This One, Put A File Called "WARNING(.txt)" In The RamDisk Saying That On Shutdown All RamDIsk Files Will Be Dleted.
BOTH:Have Most The Code Be Actual C++/C/Obj-C++ (Can Do!) And Only Rely On system() for mounting (I Even Want To DO THe Formating Of FAT/Ext2 From Within My Program If Possibel
Things I Know How To Do:
Load A Binary File Into A Vector
PLain File IO
.c_str()
All The Basic (if,do,logicl gates,cout,etc)
THings I Don't:
String Formating
REserve A Large Space In RAM
Most Pointer Related Things (Know How To Sort Of Use Heap)
Like I Said I Don't Want To Lean On system() Or External Libs Too Much.
I Want To Work From The Core (Making A Rdisk And Putting A filesystem On It, even if using system) And Then Work Up.
I Also Want It Explained.
Windows 7 (64-Bit), Windows XP (32-Bit), Ubuntu 11.10 (64-Bit), If Possible, MINIX 3. All Using GCC/MinGW
Sorry About The Strange Capitlazation (THe) My Shift Key Hates Me And For Sounding Demanding, Just Want To get To The Point...
Thanks In Advance.