Command line parameters

Started by
2 comments, last by Dragonsoulj 12 years, 2 months ago
Hello,

"D:\Program Files\Innonics\Diggles\Diggles.exe" -console
Which part of the program receives the "-console" command? Is there an easy way of seeing a list of possible commands that could be used and would that require to unpack the .exe file? There are no .dll's nearby so that file should be taking those commands.

And this is off topic, but maybe you can give me a fast answer of how to see Floats that are saved near plain text? F.E.
exp_Stein************* wheres the ******** is some weird symbols if opened with Notepad++
Advertisement
The only easy way to list possible command line parameters is to check the documentation (including that available through things like 'myprog --help'). If that's not available, you're stuck either a) guessing or b) reverse engineering the program. Neither of these are sensible solutions.

If I understand your second question correctly: most hex editors will have an option to interpret a region of the file as having a certain type and display the corresponding values. Of course, this only works if you know the type of that region, otherwise you're just guessing.
[TheUnbeliever]
The command line parameters are passed to the executable (in your example "Diggles.exe") which may then choose to do something with them or behave differently.

As TheUnbeliever says, your best bet is to see if there is documentation available, whether that be a physical manual, online documentation, or a command line parameter (often -help or -?) which will print further information to the console. "Unpacking" the executable is probably not a viable option for you -- although if you want to look into it further you could search terms such as "reverse engineering" and "decompile".

- Jason Astle-Adams

As for what part of the program gets the -console, that would be the entrance to your program. In some languages, this is your main() function call. The -help or -? for some Windows code I've seen is simply a function that prints out the parameters the program can take and what they do.

As to knowing what the program's parameters that are being passed in (-console), the others have answered it. Pretty much just documentation or guessing.

For your other question, Notepad++ is doing weird characters because the floats are outside of the usual character set (or in range of a character, but one that is deemed "weird", ie not 0-9, A-Z, a-z or regular punctuation and symbols). It sounds like the floats are being cast as characters. To view them, you'll probably have to write a program that parses the file.

This topic is closed to new replies.

Advertisement