| View previous topic :: View next topic |
| Author |
Message |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sat Jul 16, 2005 9:28 pm Post subject: LINK CREATE and using an icon from user32.dll - [RESOLVED] |
|
|
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 |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Sat Jul 16, 2005 9:44 pm Post subject: |
|
|
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 |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Sat Jul 16, 2005 10:18 pm Post subject: |
|
|
Sorry Garrett, I was wrong. Guess I shoulda tested that before posting.  _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sun Jul 17, 2005 1:51 am Post subject: |
|
|
Thanks anyway Bill. I also tried that.
-Garrett |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sun Jul 17, 2005 2:27 am Post subject: |
|
|
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 |
|
 |
|
|
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
|
|