|
-
Nov 21st, 2002, 02:03 PM
#1
Thread Starter
Stuck in the 80s
[Resolved] Command Arguments?
How can I pass arguments to my exe? Like, from the command prompt, do this:
C:\hoboexe.exe -f"C:\hoboexe2.exe"
Last edited by The Hobo; Nov 21st, 2002 at 02:13 PM.
-
Nov 21st, 2002, 02:09 PM
#2
Frenzied Member
Code:
int main(int argc, char* argv[])
argc contains the number of arguments, argv[0] contains the application filename, and argv[1..argc-1] contain the arguments passed.
Z.
-
Nov 21st, 2002, 02:12 PM
#3
Thread Starter
Stuck in the 80s
Oh. I always wondered what those meant. Just never had a reason to ask.
Thanks again, Z!
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
|