Reason is, i plan to use a different utility to make partition dump faster, that is why this didnt come in my mind at first place. I couldnt make things i want with savepart on this subject, ghost is doing exactly what i want with speed (and with an unwanted correction) but i dont want to use a nonfree utility.

Probably when i find a nice nonfree utility that does diskcopy, i will need that drive number

I try all (i guess) free partition utility in the list, some of them didnt like/want to use disk mounted by vdk, most dont have any command entry, others made disk dump with speed of dsfi. So no success for now, probably i will go back to the begining with trials with savepart.

Beside this unsuccess for now,bpatcher.exe yUSB.img 1C2 0Cdidnt work with 4gb image file so i choose another way to add a correction for 0B-0C and 06-0E,

Again I need confirmation ? (sorry, but i am still a rookie, it will take looong time to graduate )I didnt use If closes this time (if "%PartType%" == "0E" ...), maybe i do right, maybe wrong??and if confirmed yes, than the previous modification to change %targetfile% would be useless???

Also, why you need using two files?cannot you just patch the extracted %Targetfile%512a.mbr?

yes one file is enough, i use this method to see the change before/after during trials As i am a rookie, i double (in this case triple, 2 files + created image file) check as much as possible, i loose lots of times with a gain of making less (but not zero) mistakes.

I made some changes so correction made before explorer executed (so someone who look mbr info of mounted disk will see final mbr of image, and a diskcopy utility can be used at this stage), i guess this time i did all right?

This should mean that in "interactive mode", NO matter what the user actually wants, you "force" him to copy:

This is in my view WRONG, you should ask for user confirmation.

In my defense,if a user create a folder \BootFiles\ and put files in it, andif a user create a folder \ExtraFiles\ and put files in it, than it means user want these files to be copied.In my usage i rename folder when i dont want to copy files, which will be very understandable for a new user because at first there are no \BootFiles\ or \ExtraFiles\ folder.

AlsoIn interface asking user "Do you want to copy bootfiles to the mounted image?" will be useless if there is no such folder created and files added. (maybe boot files files can be checked and if one exists this question can be asked and a check of extrafiles folder may/may not be necessary)

Ideas are for to share, not to argue, please dont think that i dont like the idea of confirmation, i only share my ideas.By making some modification I wrote this and checked working

as Capitan compromise, I uploaded new file and added recent changes to post #14

As i read from a site a while ago, you are a bible jaclaz

I have been called all kind of names.... http://www.boot-land...?...=2958&st=15though I think that it is mainly "flattery", I hope to not offend anyone, as it is really not intended , but sometimes I think to appear like some kind of "civilized" explorer marooned off to a shore where the natives get bewildered by the lighting of a match (unrealistically dry after the wreckage of the ship and the long swim ).

I find that the little things I try to share are mostly known, easily findable, very rarely I "produce" something that is "new", or "original", I simply try to keep together the bits and pieces related to a very "narrow" topic, basically the MBR and bootsector: 512 + 512 bytes, and a handful of files, NTLDR, NTDETECT.COM, BOOT.INI, grldr and menu.lst....

well this post is for experts only so it will be better to make explanation for starters...for
---

save MBR code of disk or an mbr file.
Copy MBR code of disk or an mbr file to another file.
Can write the MBR code of source file to destdrive.
Creates MBR from a 2k/XP file saving it as targetfile.
Show partition entries in source MBR(either a MBR file or a drive).
Edit one partition entry in MBR file.
Patches sourcefile with "HP" USB/int13 modification.
create HD like images of arbitrary size and to format them with various geometries.