Jump to content
  • Advertisement
Sign in to follow this  
vazix

Command line parameters

This topic is 2494 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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++

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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".

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!