Page 1 of 1

Need help with batch...

Posted: 31 May 2010 16:12
by jarun88
Hi all,

I need help with batch files, I am using Phoenix compiler which uses command prompt for debbuging
programs, anyway, what I want is...

-Make c# program that will run batch files.
-Batch files should open my compiler and then pass command to cmd to debug my program

Basically, what I need is batch file that will run compiler and then debbug my program instead of typing
everything by myself.

Otherwise I would need open compiler via shortcut, which then runs cmd, and type in command prompt cl -c hello.cpp to
debug it... is it possible to do entire work with batch file? I know how to run compiler via batch, but dont know how to pass cl -c hello.cpp
to command prompt then.

Thank you!

Re: Need help with batch...

Posted: 31 May 2010 21:24
by Calvogalatra
Have you tried anything yet?

What about creating a new shortcut and put the following command:

Code: Select all

cmd /k "cl -c hello.cpp "


or something like this?

Calvo

Re: Need help with batch...

Posted: 01 Jun 2010 01:30
by jarun88
You gave me an idea... thanks...

Im new to batch files... so I didnt know is it possible at all...anyway...
One batch file will be enough... but will have to pass route to my program.

Thanks!