cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
how to pass a parameter from c++ code to
how to pass a parameter from c++ code to .bat file?
Aug 22, 2010 at 9:04am UTC
georgialucas
(7)
Hello Everyone,
Does anyone know how to pass a parameter from c++ code to .bat file?
Thanks a lot,
Aug 22, 2010 at 8:52pm UTC
Zhuge
(4664)
Could you give an example of what you're trying to do? What your suggesting sounds very weird to me.
Aug 22, 2010 at 9:20pm UTC
mcleano
(922)
Do you mean creating a batch file from an executable?
Aug 23, 2010 at 1:05pm UTC
georgialucas
(7)
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.