Identifying a shortcut name
From: Dave Williams (dont_at_mail.me)
Date: 09/06/04
- Next message: John Phillips: "Re: Command prompt."
- Previous message: Collins Inc: "FASTCONV Extraction Tool for NTBackup"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 6 Sep 2004 12:29:37 +0100
Hi, I have an odd requirement, hoping someone can help me out...
I have a program that creates a shortcut (shell links) to another program,
and I'd like the second program to be able to identify the name and location
of the shortcut used to invoke it.
I've found that by the first program not setting a current directory, the
second program's current directory is the location of the shortcut, so
that's great, but I also need to know the name of the shortcut file (so I
know if anyone renames it). I've checked envronment variables and command
line, but nothing contains the shortcut filename.
Can anyone suggest how I might find out, or an alternative approach I could
use? I considered using an associated file type rather than a shortcut,
which is great, except that I'd prefer not to have to guarantee that the PC
looking at my file has the registered association from my new file type to
my second program.
Thanks,
Dave
- Next message: John Phillips: "Re: Command prompt."
- Previous message: Collins Inc: "FASTCONV Extraction Tool for NTBackup"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|