|
-
February 23rd, 2008, 10:46 AM
#1
%1 help
for anyone who knows batch really well
what is the command %1 (batch) in c++?
-
February 23rd, 2008, 12:22 PM
#2
Re: %1 help
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:
Code:
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|