Borland C++ compile/run

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Maddog

Borland C++ compile/run

Post by Maddog »

Good day all, and a Happy New Year!

I have been trying to set up TP to do the compiling and running of Borland C++ code for me.

I have followed the directions in every post I can find and the good news is that I can compile and I can run.

What bothers me however is that I end up with a whole bunch of tp******.bat files in my C++ directory (where I am saving my source files).

I am a new C/C++ programmer, and loved the way I could compile and run Java programs with TP, but I dont want to have to go in and delete these .bat files each and every time. The C++ program I am compiling simply asks for input (text) and stores it in the variable <namein>, then prints it out back to the screen.

What is stored in the .bat file is shown below:

@ECHO OFF
C:
CD \C++
namein
PAUSE


Now this is generated by the Run C++ command I have set up (I have compiled it several times without the .bat file being generated). My run command is set up as:

Command: cmd.exe
Parameters: $BaseName
Initial Folder: $FileDir
nothing else checked

If i check capture output, I cannot enter any values - it just runs through to the end and terminates.

So can anyone shed any light as to why i get this silly .bat file, and what setting can I change to get this to work as I assume it is supposed to?

Thanks in advance,

maddog
Post Reply