Windows command line echo app

Discussion in 'Software' started by Splynncryth, 11 Aug 2007.

  1. Splynncryth

    Splynncryth 0x665E3FF6,0x46CC,...

    Joined:
    31 Dec 2002
    Posts:
    1,510
    Likes Received:
    18
    Is there an application out there I can use to record the command like options passed to it? I'm trying to get the supported command line options for an old piece of software that documentation has dried op for. I have one app that calls another and passes command line parameters. I'm looking for a way to get those. I was hoping I could replace the target with a dummy that would capture the command line parameters for me.
     
  2. DougEdey

    DougEdey I pwn all your storage

    Joined:
    5 Jul 2005
    Posts:
    13,933
    Likes Received:
    33
    most CLi Apps have a --help or -help or /? option.
     
  3. Fophillips

    Fophillips What's a Dremel?

    Joined:
    9 Oct 2006
    Posts:
    948
    Likes Received:
    1
    Code:
    #include <stdio.h>
    
    int main (int argc, char **argv) {
        while(argc--)
             printf("%s\n",*argv++);
    }
    
    
     
    Last edited: 11 Aug 2007
  4. DougEdey

    DougEdey I pwn all your storage

    Joined:
    5 Jul 2005
    Posts:
    13,933
    Likes Received:
    33
    ugh, people should use line breaks
     
  5. Fophillips

    Fophillips What's a Dremel?

    Joined:
    9 Oct 2006
    Posts:
    948
    Likes Received:
    1
    o_0 I did.
     
  6. m0ng0lh0rde

    m0ng0lh0rde What's a Dremel?

    Joined:
    5 Jun 2004
    Posts:
    146
    Likes Received:
    1
    Presuming you mean you're trying to capture the options, in general? To keep handy? Or are you actually trying to pass the options to another app?

    If the first, try:
    {command} /? > options.txt
    Should pipe the output to a txt file, wherever you happened to run it.
    Presuming the app in question also has a help option....

    If the second, depends on what you're trying to pipe the options too....
     
  7. Splynncryth

    Splynncryth 0x665E3FF6,0x46CC,...

    Joined:
    31 Dec 2002
    Posts:
    1,510
    Likes Received:
    18
    seems I forgot to mention it's a Windows app, don't know how that slipped my mind. The program is an old game that has a launcher then the engine. The engine does not support any help queries. I'm fairly sure the game supports more options than the launcher but I can't find them by looking a the hex of the launcher. I was hoping to find a ready made program because I'm lazy :)

    I'm fairly sure more options are available than what are presented in the launcher, but I need to get what I can from the launcher to figure out the rest.
     
  8. Fophillips

    Fophillips What's a Dremel?

    Joined:
    9 Oct 2006
    Posts:
    948
    Likes Received:
    1
    Just compile my code you lazy *******. :)
     
  9. DougEdey

    DougEdey I pwn all your storage

    Joined:
    5 Jul 2005
    Posts:
    13,933
    Likes Received:
    33
    Fophillips: He has an app that he wants to know what variables can be passed to it. He doesn't want to make an application
     
  10. Fophillips

    Fophillips What's a Dremel?

    Joined:
    9 Oct 2006
    Posts:
    948
    Likes Received:
    1
    I thought he wants an app that captures the arguments sent to it...
     
  11. DougEdey

    DougEdey I pwn all your storage

    Joined:
    5 Jul 2005
    Posts:
    13,933
    Likes Received:
    33
    That's what I focused on, it's not very clear tho :p
     

Share This Page