Author Topic: The system cannot execute the specified program  (Read 6505 times)

Offline puneet_m

  • Multiple posting newcomer
  • *
  • Posts: 73
The system cannot execute the specified program
« on: August 21, 2007, 11:36:05 pm »
In update.bat file, there is a following line ---

%ZIPCMD% -j9 %CB_DEVEL_RESDIR%\codecompletion.zip plugins\codecompletion\resources\manifest.xml plugins\codecompletion\resources\*.xrc > nul

When we attempt to start a 16-bit program from a folder that has a full path name with more than than 64 characters, the following error message appears:
The system cannot execute the specified program.

What will be the most appropriate way of tackling this error? (I am not really sure whether changing the name of codecompletion to something smaller will be a good idea).

Thanks,

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: The system cannot execute the specified program
« Reply #1 on: August 22, 2007, 11:26:07 am »
This is a Windows 95/98 limitation. We will not rename any files.

It can be fixed by setting an environment variable in your autoexec.bat, but I forgot the name...  :?
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline puneet_m

  • Multiple posting newcomer
  • *
  • Posts: 73
Re: The system cannot execute the specified program
« Reply #2 on: August 22, 2007, 04:16:39 pm »
But my machine is Windows XP..Then what could be the problem??

Offline wwolf

  • Multiple posting newcomer
  • *
  • Posts: 34
Re: The system cannot execute the specified program
« Reply #3 on: August 22, 2007, 04:39:05 pm »
It is a Windows limitation.  A stupid one.  16bit processes cannot do any better.  It is not Code::Blocks specific problem.

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: The system cannot execute the specified program
« Reply #4 on: August 22, 2007, 05:02:27 pm »
But my machine is Windows XP..Then what could be the problem??

If I remember correctly, I gave the link of to download zip utility. I suspect you downloaded the Win3.x (16 bit version).

Please download zip232xN.zip file from the following mirror.
Quote
ftp://ftp.info-zip.org/pub/infozip/WIN32/

This should solve your problem.
Be a part of the solution, not a part of the problem.

Offline puneet_m

  • Multiple posting newcomer
  • *
  • Posts: 73
Re: The system cannot execute the specified program
« Reply #5 on: August 22, 2007, 05:22:40 pm »
Thanks, that solved the problem.

But when I try executing codeblock after building it and running update.bat it gives me the following error --

The application failed to initialize properly(0x0000005). Click OK to terminate the application

Why is that giving an error when I could successfully build codeblock?

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: The system cannot execute the specified program
« Reply #6 on: August 22, 2007, 06:01:26 pm »
The application failed to initialize properly(0x0000005). Click OK to terminate the application

A Google search with the above phrase gives multiple solutions. Google it and see which one applies for you. But before that you may wish to clean up everything and rebuild the C::B source once to see if the problem persists or not.
Be a part of the solution, not a part of the problem.