Click to See Complete Forum and Search --> : %1 help


paul_9519
February 23rd, 2008, 09:46 AM
for anyone who knows batch really well
what is the command %1 (batch) in c++?

Marc G
February 23rd, 2008, 11:22 AM
Is %1 the first parameter on the command line?
If so, you can get your command line parameters on different ways. All depends on what program you are writing.
For example, a basic console application can have a main like:
int main(int argc, char* argv[])
{ ... }
argc is the number of command line parameters and argv is an array of strings containing the command line parameters.