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 


LINK CREATE and using an icon from user32.dll - [RESOLVED]

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


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sat Jul 16, 2005 9:28 pm    Post subject: LINK CREATE and using an icon from user32.dll - [RESOLVED] Reply with quote

Ok, does anyone know how to get an icon from user32.dll to show up
for a short cut created using LINK CREATE?

I'm trying to make a shortcut to a drive and to show the appropriate
icon for that drive. Here is what I have, but it doesn't work:

Code:

  %%DkTop = @WINDIR(Desktop)
  %%DriveName = @volinfo(%%DriveLetter,N)
   LINK CREATE,@windir()"\"explorer.exe,%%DkTop,%%DriveName,@windir(s)"\shell32.dll,7",%%DriveLetter,%%DriveLetter


Shortcut is being created, but the icon in shell32.dll is not being displayed.

Any idea's?

Thanks in advance,
-Garrett


Last edited by Garrett on Sun Jul 17, 2005 2:28 am; edited 1 time in total
Back to top
View user's profile Send private message
ShinobiSoft
Professional Member
Professional Member


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

PostPosted: Sat Jul 16, 2005 9:44 pm    Post subject: Reply with quote

Hi Garrett,

I think you need to change this from::
Code:

@windir(s)"\shell32.dll,7"


to::
Code:

@windir(s)"\shell32.dll|7"

_________________
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
ShinobiSoft
Professional Member
Professional Member


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

PostPosted: Sat Jul 16, 2005 10:18 pm    Post subject: Reply with quote

Sorry Garrett, I was wrong. Guess I shoulda tested that before posting. Embarassed
_________________
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
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sun Jul 17, 2005 1:51 am    Post subject: Reply with quote

Thanks anyway Bill. I also tried that. Sad

-Garrett
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sun Jul 17, 2005 2:27 am    Post subject: Reply with quote

Found another way to achive what I needed.

Code:

  DDE LINK,Progman,Progman
  DDE EXECUTE,[AddItem(%%DriveLetter","%%DriveName)]
  DDE TERMINATE
  FILE COPY,@regread(HLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,Common Programs)\%%DriveName".lnk",@WINDIR(Desktop)
  FILE DELETE,@regread(HLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,Common Programs)\%%DriveName.lnk


-Garrett
Back to top
View user's profile Send private message
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