forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Read info from a shortcut (.lnk)

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Wed Apr 02, 2003 12:44 am    Post subject: Read info from a shortcut (.lnk) Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Wed Apr 02, 2003 12:46 am    Post subject: Reply with quote

I think it's like reading from an INI file. Let me check into this. Smile
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Wed Apr 02, 2003 12:49 am    Post subject: Reply with quote

Hmmm. That's internet shortcuts. Confused

This might help:
http://members.aol.com/wjm4kenpo/wjm107.htm

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Wed Apr 02, 2003 3:20 am    Post subject: Reply with quote

Thanks. Looks like a nice challenge to me! Smile
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Wed Apr 02, 2003 9:03 am    Post subject: Reply with quote

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. Smile

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Wed Apr 02, 2003 12:19 pm    Post subject: Reply with quote

Oh man. I never noticed that before. Embarassed Very nice. Thanks for pointing that out. That is what I needed!

Thanks,

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Wed Apr 02, 2003 4:10 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group