Efo74 Posted October 23, 2018 Posted October 23, 2018 Hello, I have written a backup utility using disk2vhd / autoit and it works fine. The result backup file is a vhd/vhdx file, is there a simple way to modify this file that only my backup file can read ? The backup files are very large and the encryption takes a long time, I thought of a way to change only a few bytes at the beginning of the file, or do you know some other method? Thank you for the support. :rolleyes:
TheDcoder Posted October 24, 2018 Posted October 24, 2018 For VHD (specification) you can just backup the first 512 bytes (copy of footer) and 1024 bytes (header) of the file and any sane program would not accept it as a proper VHD I imagine you could do something similar with VHDX too but I haven't looked into it Xandy 1 EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion
Efo74 Posted October 24, 2018 Author Posted October 24, 2018 Thanks, I'll try to do what you suggested. :rolleyes:
TheDcoder Posted October 25, 2018 Posted October 25, 2018 @Efo74 I have also found the VHDX specification, it says that the file header starts immediately and is 1024 bytes long (1 MB), so you can backup that to prevent VHDX from working in other programs EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion
Efo74 Posted October 26, 2018 Author Posted October 26, 2018 Thanks for your availability, and for the technical documentation of the two formats, now I have to study and try. :rolleyes:
TheDcoder Posted October 27, 2018 Posted October 27, 2018 My pleasure, good luck! EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion
Efo74 Posted November 10, 2018 Author Posted November 10, 2018 I have produced some code, every suggestion is welcome ReadWrite_Binary1Mb.au3 :rolleyes:
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now