I am writing a program which accepts command line arguments and process them. I am able to accept the string from the command line. The string is like
command -f "c:\temp.txt" \servername:port\Getstatus
What I want is that is code helping to do the follwing things
> if a -f is noticed then take c:\temp.txt in a variable and pass it.
> Also the validation code for checking the correctioness of entry....(The command should be entered exactly in the format).
> Also I want servername:port seperately in another string....
Please help me in doing these things, urgent respondings is greatly appreciated
Thanks in advance