Need help with batch...

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
jarun88
Posts: 2
Joined: 31 May 2010 15:56

Need help with batch...

#1 Post by jarun88 » 31 May 2010 16:12

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!

Calvogalatra
Posts: 7
Joined: 31 May 2010 15:35

Re: Need help with batch...

#2 Post by Calvogalatra » 31 May 2010 21:24

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

jarun88
Posts: 2
Joined: 31 May 2010 15:56

Re: Need help with batch...

#3 Post by jarun88 » 01 Jun 2010 01:30

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!

Post Reply