Editing an VB Exe file

Posted on 2003-02-25
Medium Priority
Last Modified: 2013-12-28

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.
Question by:atulbharti
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 14

Expert Comment

ID: 8017287

   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
LVL 49

Accepted Solution

dbrunton earned 210 total points
ID: 8018730
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.

Expert Comment

ID: 8020628
Was VB5? VB6?
Search the internet for
"visual basic decompilers"

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

Independent Software Vendors: 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!


Expert Comment

ID: 8022346
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!

Expert Comment

ID: 8022492
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.
LVL 14

Expert Comment

ID: 8023563
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

Author Comment

ID: 8026910
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

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows 10 Creator Update has just been released and I have it working very well on my laptop. Read below for issues, fixes and ideas.
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

801 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