how to pass a parameter from c++ code to .bat file?

Hello Everyone,

Does anyone know how to pass a parameter from c++ code to .bat file?

Thanks a lot,
Could you give an example of what you're trying to do? What your suggesting sounds very weird to me.
Do you mean creating a batch file from an executable?

I finally figured it out thanks...

I wanted to pass a value of a variable from my console program to an external .bat file.

so I just used the %1 in the bat file
and I added the value of the variable beside the name of the application when I called the .bat file using create process.

it worked.

But thanks a lot anyways,

Topic archived. No new replies allowed.