Results 1 to 4 of 4

Thread: Knowing why app was opened...

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    You know how if you browse through the registry, how one does on a lonely Friday night, and (as again is common practice) you look through HKEY_CLASSES_ROOT and scroll down (being careful to not be attacked by the vicious scrollbar virus which instantly overheats your monitor) to, say, giffile. Then go to shell/open/command and you will see that it is told to open (well, on my computer at least) Photo Editor but then puts "%1" at the end.

    Aha, said I. To myself. In fact, I was alone at the time. Just as well since I was wearing .. well .. er .. nothing and provinding my own heat

    But my attention moved from the awesome, throbbing creature to my computer. I had discovered, friends and gutter-enhabiting neanderthals, that when windows shells an application with the purpose of opening a file it somehow tells it through "%1" that there is a specific file it should open.

    Despite my massive ... intellect I do not know how one can access both IF the program has been opened this way AND the way one can find the file to be opened.

    Thank you.

    Me and my Billy Bass (one-eyed trout)
    Courgettes.

  2. #2
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    Use the Command function.
    Use it for both problems, the VB one and the real-life one.

    P.S. I know it makes no sense, I'm just bored.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    Aha.

    Thank you, Yinuthen. I'll send you photos if you like.


    Is the file to open appended to the "%1" or is the world going to let me find this one out myself?
    Courgettes.

  4. #4
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    No thanks, V(andalism) Draysick, I would not like to view any photos of that specific action.

    The file name replaces the "%1", actually.

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