Skip to main content

The system cannot execute the specified program

It always annoys me no end when I get messages like the following:

"The system cannot execute the specified program."

I got the above error from Windows XP when I tried to execute a program I use all the time. The message is hugely aggravating because it says the obvious without giving any actionable information.

If you have such a problem and you are executing from a deep directory structure that may be your problem. It was in my case.

Looking on the web with that phrase brought up a bunch of arcane stuff that did not apply to me. It mostly brought up long threads (as these things tend to do) which follow this pattern:

'Q' is the guy with the problem asking for help 'A' can be any number of people who jump in to 'help'.

Q: I got this error "The system cannot execute the specified program." when I tried to ... [long list of things tried]

A: What program were you running, what operating system, where is the program? What type of drives do you have? Do you have a USB device plugged in? What is your middle name?

Q: After your question, I have unplugged everything and re-installed everything and I still have the problem. The problem occurs with some of the programs I am trying to use from the command line. The problem seems almost random.

A: Make sure you do a complete backup. You can't backup properly with Windows. You will need to buy a third-party product. Once you have backed up and tested your backup on another machine, try the following completely tangential and dangerous things. [long list of dubious actions including editing registry keys, changing security settings, removing anti-virus software, etc.]

Q: I took a couple days off work, bought the latest anti-virus software and ran it on my machine, bought a top of the line backup system and then tried your other suggestions. It broke something else and I still have the problem.

A: I actually just opened the windows in my office to cool things down and the problem went away. Have you tried installing more fans in your case?

Q: The machine is brand new and has no problems with heat. I still have the problem. I have put in a request for help from Microsoft, but have not heard anything back.

A: I hate to suggest this, but you may just have to completely re-install everything again, get new versions of the service packs and make sure you have all the most recent stable drivers. Make sure you check the md5 hash checksums on every file, just in case. A low-level scan of your hard disk would not hurt either.

Q: I did as you suggested. Everything is up to date. Everything is fine except for this one problem with a few programs.

A: I'm stumped

A: Me too.

Q: No problem. I finally got it working. I did as suggested by my chiropractor and bought a new chair. After some adjustments to my spine, which may have been giving off some bad 'vibes' being picked up by the machine, I took a more positive attitude, copied all my work to a new directory and just went to work. Thanks for your help!


Well, I finally did figure it out for real (in my case). I was using some older 16-bit programs and I was trying to execute them from a directory that was very deep. When I went up a couple of directories, everything was OK.

I am apparently the only person in the world that has ever tried to use an old program from a directory over ten levels deep or more than 65 characters long or whatever the precise problem is.

Note that YMMV. The error message in question is pretty much useless. It says that the program won't run. It reveals no information as to what it might be.

If anyone has suggestions for keywords that would help someone to get here and get their answer, please let me know.


David Gray said…
You might not be quite one in a million; your page was the third entry returned by Google for my search, putting it ahead of over forty thousand others on the subject. Maybe that's because your solution for this supposedly arcane problem is spot on, and preserved my sanity.

Popular posts from this blog

Crucial SSD BIOS update

Executive summary: If Crucial Storage Executive can't see your Crucial drive, you may be able to fix that by re-running as Administrator.  Windows 10 continues to be a nightmare. The latest update has caused my machine to go wonky and it was suggested that, for reasons unknown, my SSD boot drive needed a BIOS update.  The drive in question is a Crucial MX500 CT500MX500 S SD1 and the BIOS update is from M3CR020 to M3CR023.  I initially attempted to burn and boot from a DVD ROM, but that came back with an error:  "could not find kernel image boot/vmlinuz64" You would think that something whose sole purpose is to boot into one program could get that right. That is, you would think that this very basic thing would have been tested prior to release. Sigh. No doubt there is a tortured route to get that thing to boot, but for me there was an easier way. You would think that Crucial would have offered that up first rather than the burnable image, but not in my case.  I then insta

When code writes code, what do developers do?

When code writes code, what do developers do? As we head further into a future where things are automated, people’s last refuge will be curation in a bright future or serving others in a dark future. Curation devolves into saying what you want and iterating through a few rounds of “not that.” As a programmer, I always found automated programming tools laughable. We are still mostly there, but ML/AI is changing that. At one point, many people sagely nodded their heads and said computers would *never* beat a human at chess. Never. I disagreed. I thought that it was ***inevitable*** that they ***would*** beat humans ‘hands down.’ That is well behind us now. It is only a matter of time until all human ‘jobs’ will be doable by machines. Each one, including being a companion. As of now, the bottleneck is energy and knowledge. I think we will crack fusion, but if we do not, we can still harvest billions of times what we use now from the sun in space. The knowledge is increasing rapidly.