Search code examples
windowswindows-7dd

Alternative to using dd in windows


In a build operation I am attempting to do on Windows (7, if it matters), I need to execute the command dd status=noxfer conv=notrunc if=data.bin of=disk.flp on object code from assembly (nasm with -f bin). Is there a way to do this without installing any programs? To reiterate, installation of third-party programs is entirely impossible on this workstation.


Solution

  • Unless I'm missing something all you want is to append the data from data.bin file to the end of disk.flp file. If so, it should be easy with CreateFile - SetFilePointer (to the end of file) - WriteFile