views:

37

answers:

2

Hello,

I have an exe file that accpets parameters. For example,

a.exe parameter1 parameter2 parameter3

the problem is that I am not sure what parameters areavailable. Is there a way to find out it? the exe is complied by visual c++.

Thanks.

A: 

The standard is to query the parameters by passing a question mark:

c:\>myprogram.exe /?

and the application will display the available command line parameters. But there is nothing to force the application developers to do this, if they haven't then the best you can do is either read the doco, or disassemble it and look at the behaviour around the entry point of the app.

If the parameters are not published, then you should treat any you find as volatile and unreliable, liable to change anytime the developer wants to change them.

slugster
+1  A: 

check this link for one way ,though its in VB itz a worth try .

http://www.bigresource.com/Tracker/Track-vb-5NSIxX9RrZ/

Himz