Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: puneet_m on August 21, 2007, 11:36:05 pm

Title: The system cannot execute the specified program
Post by: puneet_m 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,
Title: Re: The system cannot execute the specified program
Post by: thomas 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...  :?
Title: Re: The system cannot execute the specified program
Post by: puneet_m on August 22, 2007, 04:16:39 pm
But my machine is Windows XP..Then what could be the problem??
Title: Re: The system cannot execute the specified program
Post by: wwolf 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.
Title: Re: The system cannot execute the specified program
Post by: Biplab 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.
Title: Re: The system cannot execute the specified program
Post by: puneet_m 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?
Title: Re: The system cannot execute the specified program
Post by: Biplab 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.