partition clone with c#
-
Is there any way that i can make clone of hard drive c to mu external one by using c# code? can anyone help me with guideline or opensource software which has the desirable method.
Ummm, maybe a something like, File.Copy ? :rolleyes:
I know the language. I've read a book. - _Madmatt
-
Is there any way that i can make clone of hard drive c to mu external one by using c# code? can anyone help me with guideline or opensource software which has the desirable method.
I wouldn't attempt it with managed code.
-
I wouldn't attempt it with managed code.
-
Is there any way that i can make clone of hard drive c to mu external one by using c# code? can anyone help me with guideline or opensource software which has the desirable method.
You can try xcopy-tool./[^]
Thanks Md. Marufuzzaman
I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.
-
Is there any way that i can make clone of hard drive c to mu external one by using c# code? can anyone help me with guideline or opensource software which has the desirable method.
Clonning a partition is not an easy task, and by far an easy one to do with managed code. If you want to do a full clone then your aim is to understand partition descriptors, file and folder descriptors and all the stuff that goes behind a file system when it acceses a partition. Why it is necessary to understand them, simple you can't just rely on the file system of an os and there are lots of existing partition types. If you want just to copy all the files from a partition to another you must keep in mind that critical files opened by the operating system and/or applications are not readeable (nor writable) unless they are closed (or opened under special conditions). ps: partition != hard drive :)
I have no smart signature yet...
-
But if no one thinks you should, no one will tell you how.
-
Is there any way that i can make clone of hard drive c to mu external one by using c# code? can anyone help me with guideline or opensource software which has the desirable method.
You're not going to do it in managed code. In the simplest form you can do this, it requires that Windows isn't running since there will be plenty of areas of the disk that will be locked and unavailable to even be read. I wrote an app to do this way back in 1991, written in C and running from a DOS boot floppy. I was duplicating hard drives for the mass production of "laptop" computers for Prudential Insurance. Every machine has a standard DOS/Windows/software load that had to be on about 450 machines. For those keeping score, Ghost came out 2 years later in 1993. Yeah, there's my :doh: moment! ...had I only known there was a market...
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...