• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 266
  • Last Modified:

Editing an VB Exe file


I worked on a VB project. But unfortunately i lost the entire code due to hard disk crash. Fortunately i had the exe file on one of my floppies. but now the problem is that the company for whom i have created that application wants me to change one label and the caption of the form as they have changed the name of their concern. I now only have a VB exe file.
Is it possible to directly edit the exe file. There is not much change to made. I need to change one label and the caption of the form. If there is any utility through which i can edit my exe file.

Please help me out of this situation.
1 Solution

   theoreticaly you can dasm and modify the file, but I'm afraid that you will have to rewrite the entire code. (u did it once, now should be easyer  :)
  U could try a hexedit software but I don't think that will work

best regards
You could try a hex editor and edit it that way.  

This way you can search for the text concerned and then edit it.  However you can't change the size of the file by permanently deleting or inserting characters.  You can change characters that are there though to new characters and still keep the file size constant.

There are a good variety of hex editors available.  Any search on Google will find one for you.
Was VB5? VB6?
Search the internet for
"visual basic decompilers"

Those programs can generate your sources files....with a little bit of lucky.

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Go to www.planet-source-code.com  there are decompilers for VB exe's  most of them just view the forms within the exe, but you should be able to cut and paste...  thus saving you tons of time!
I used to program in VB and I have found decompilers, but they only work for VB3.  I would have to say that a Hex editor is you best bet.
you have to make the changes of the text the same length though.
if you are wanting to make it smaller you can fill in the rest with spaces.
if you want to make it longer...you are in trouble and should start programming it again.
download hexedit from:
it's a trial version, but it should do the job.
try finding the exact text that u want to modify, but the problem is that u can only overwrite, and the bigger problem is that the text is very likely not to be explicitly displayed, but messed up in the .exe .
As i said before, try this and if doesn't work, start programming again.
I'm not able to find any decompilers for vb 4,5..

best regards
atulbhartiAuthor Commented:
Thanks all of you for your timely help.
But since i can award the points to only one, i am awarding it to dbrunton as his answer has solved my problem at the earliest.


Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now