Results 1 to 4 of 4

Thread: [RESOLVED] Command Line to the .exe and the shortcut ?

  1. #1

    Thread Starter
    Frenzied Member some1uk03's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    1,675

    Resolved [RESOLVED] Command Line to the .exe and the shortcut ?

    Hello,

    Is there a way to pass command line arguments on the actual .exe file and NOT its shortcut ?
    _____________________________________________________________________

    ----If this post has helped you. Please take time to Rate it.
    ----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.



  2. #2

  3. #3

    Thread Starter
    Frenzied Member some1uk03's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    1,675

    Re: Command Line to the .exe and the shortcut ?

    yea.. the Command() function returns command line arguments.. BUT im not talking bout that.

    Im saying, you cannot assign arguments IF the file is not a SHORTCUT.. only SHORTCUTS can have command line arguments assigned and i need it on the actual .exe.
    _____________________________________________________________________

    ----If this post has helped you. Please take time to Rate it.
    ----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.



  4. #4
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: [RESOLVED] Command Line to the .exe and the shortcut ?

    Not sure I understand...

    Wouldn't the following be what you're after?
    Code:
    Shell "c:\myprogram.exe arg1,arg2,arg3"
    As you see that isn't a shortcut - you're actually shelling the program itself.
    In your app on form_load (or sub main) get those args and parse them.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width