Pelles C forum

Pelles C => General discussions => Topic started by: Sneddles on March 01, 2017, 11:22:58 AM

Title: Adding .bat files to the tools menu
Post by: Sneddles on March 01, 2017, 11:22:58 AM
Is there a particular reason why the tools menu seems to only allow .exe files to be used as the command?

I have a Java program that I want to run and I normally use a .bat file to set the required environment, rather than using global environment settings.

However the Tools / Customize menu option didn't seem to like specifying a .bat file.

In his particular instance I can use the raw command line as there is no special environment to setup.
But there are other Java programs that I can't run without a .bat file as they use the same environment variables, but with different values, so I can't set them globally.
Title: Re: Adding .bat files to the tools menu
Post by: TimoVJL on March 01, 2017, 11:46:26 AM
add cmd.exe with bat-file as parameter, like /c test.bat
Title: Re: Adding .bat files to the tools menu
Post by: Sneddles on March 01, 2017, 09:28:23 PM
Ah, so simple. Why didn't I think of that?

Namaste