| View previous topic :: View next topic |
| Author |
Message |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Wed Apr 02, 2003 12:44 am Post subject: Read info from a shortcut (.lnk) |
|
|
Do anyone know of a way to read the info (path, filename, etc.) from
a shortcut file (.lnk)?
Thanks, _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Wed Apr 02, 2003 12:46 am Post subject: |
|
|
I think it's like reading from an INI file. Let me check into this.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Wed Apr 02, 2003 3:20 am Post subject: |
|
|
Thanks. Looks like a nice challenge to me!  _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Wed Apr 02, 2003 9:03 am Post subject: |
|
|
The only info you can read from a shortcut can be obtained with the @file()
function. I have not tried either of these:
| Code: |
%Z = @file(shortcut.lnk,L)
Returns the path of the file that the shortcut points to. Apparently this will
only work if it is a valid shortcut.
|
And
| Code: |
%Z = @file(shortcut.lnk,F)
Returns the path of the shortcut.
|
I'm only speculating, but from reading the help file this is the conclusion
that I've come to. Lemme know if it works or not.  _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Wed Apr 02, 2003 12:19 pm Post subject: |
|
|
Oh man. I never noticed that before. Very nice. Thanks for pointing that out. That is what I needed!
Thanks, _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Wed Apr 02, 2003 4:10 pm Post subject: |
|
|
LiquidCode,
I already gave you an example of how to do that with Gadget and a second DLL I made called dragonfly.dll.... The name of the script is misc.dsc and is one of the examples that come with Gadget. I will be happy to help you work through the code. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
|