How to Remove "Date Modified", "Magic Number (MZ)", and "Directory Structure *.EXE Was Built In From *.EXE"

Posted on 2011-10-19
Last Modified: 2012-08-14
I have recently taken over a project that requires me to remove the "Date Modified", "Magic Number (MZ)", and the "Directory Structure an *.EXE Was Built In" from the information that is contained within a Microsoft Visual C++ version 6 compiler. (The purpose of knowing this information is to verify with 100% accuracy that the bits/bytes within a give *.EXE are the same as the *.EXE that is generated from the source code of a Microsoft Visual C++ version 6 compiler.)

I have already verified that the "Date Modified", "Magic Number", and the "Directory Structure the *.EXE was built in" are contained within various segments of the *.EXE using WinMerge and PE Explorer. I was hoping that someone could help me out with turning off the proper settings, or letting me know if it is/isn't possible to remove this information from *.EXE that are compiled with Microsoft Visual C++ version 6.

Any help that could be provided on what settings would need to be set, or changed would be greatly appreciated.
Question by:thenthorn1010
    1 Comment
    LVL 86

    Accepted Solution

    It seems that PE Explorer (recommended from would offer you the possibility to do that, see - they offer it as a trial download as well, so no need to throw in the $129 before you are sure it works for you.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.
    The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now