Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Passing command-line arguments...
I now have an exe file for my program, which is basically a wannabe text
grep... But I am unable to find anything about passing it arguments from
the command line on help desk, or anywhere else for that matter.  Is there
a function for passing arguments at the command line, say

findfile search-phrase input.txt output.txt

Right now I'm just having user prompts after they type in the file name,
but it would be more convenient to be able to just type in the arguments
at the command prompt.

Thanks for your help,




Report this thread to moderator Post Follow-up to this message
Old Post
audibel
11-02-04 08:56 AM


Re: Passing command-line arguments...
"audibel" <audibel@sbcglobal.net> wrote:
> I now have an exe file for my program, which is basically a wannabe text
> grep... But I am unable to find anything about passing it arguments from
> the command line on help desk, or anywhere else for that matter.  Is there
> a function for passing arguments at the command line, say
>
> findfile search-phrase input.txt output.txt
>
> Right now I'm just having user prompts after they type in the file name,
> but it would be more convenient to be able to just type in the arguments
> at the command prompt.

Search for "argv" in the help desk.  It's a vector which contains the
command line arguments.



Report this thread to moderator Post Follow-up to this message
Old Post
Anton van Straaten
11-02-04 08:58 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Scheme archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:32 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.