find executable command line arguments

Posted on 2004-11-10
Last Modified: 2008-02-01
In an application say I have 'a.exe' This executable starts up, does some functions and then calls 'b.exe' with some arguments or command line parameters. I need to find out what the arguments are.

If i start up 'b.exe', I'm getting a message 'Error: Not enough arguments were supplied'
Question by:VirusMinus
    LVL 5

    Expert Comment


    Create a new exe called b.exe that has this in the Form_Load event of the default form (form1)

    msgbox Command$

    Now move your true b.exe elsewhere for a bit (or rename it)

    Pop your trojan b.exe in and you should get the commands being passed.
    LVL 8

    Expert Comment

    LVL 4

    Accepted Solution


    get this app rename it to b.exe and run a.exe..
    it will show you the exact parameters it got called with
    LVL 30

    Author Comment

    riotz, you are a superstar!

    P.S. could you folks also have a look at this question ->
    LVL 4

    Expert Comment

    hehe thanks =P


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
    Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now