#5 Doesn't launch shortcuts correctly

open
nobody
Functions (2)
5
2006-05-30
2006-05-30
No

Shortcuts are not launched properly if the shortcut
target includes parameters. For instance a shortcut
to:

notepad.exe x.txt

launches Notepad but ignores the x.txt file name.

Discussion

  • Kevin Whitefoot

    Kevin Whitefoot - 2006-05-30

    Logged In: YES
    user_id=190513

    Update: the problem is that the common dialog returns the
    full path to the first element of the shortcut instead of
    the path to the shortcut itself. This means that it is not
    possible to use Shortcutter to launch a shortcut because you
    can't get the name of the shortcut into the config.

     
  • Kevin Whitefoot

    Kevin Whitefoot - 2006-05-30

    Logged In: YES
    user_id=190513

    Update: the problem is that the common dialog returns the
    full path to the first element of the shortcut instead of
    the path to the shortcut itself. This means that it is not
    possible to use Shortcutter to launch a shortcut because you
    can't get the name of the shortcut into the config.

     
  • Panagiotis Peikidis

    Logged In: YES
    user_id=590751

    :S I haven't thought about this option. Very good idea.
    Thank you very much for suggesting it. I'll try to think of
    some way to do this. (My code is a mess, and this is not a
    bug, but bad structure of code.. :P)

    BTW, for the specific example, you could simply attach the
    file x.txt to launch it with the associated program
    (default, notepad)

     
  • Kevin Whitefoot

    Kevin Whitefoot - 2006-05-31

    Logged In: YES
    user_id=190513

    I edited your code to allow the user to type directly into
    the pathShortcut textboxes. Then the launch worked
    perfectly. I think the general idea of your program is
    rather neat. There is one thing I would like to say though:
    I think the form should pop up where the mouse is not in the
    middle of the screen, also a left click on the tray icon
    should open the form without having to pick from a menu. I
    made these changes to the code, I can send them to you if
    you like. Not sure if I would ever use the program myself
    because I use the Quick Launch bar to run the programs I use
    often.

     

Log in to post a comment.