| View previous topic :: View next topic |
| Author |
Message |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sun Jul 17, 2005 1:57 am Post subject: Creating a shortcut to a drive? [RESOLVED] |
|
|
Ok, how about this... Does anyone know how to create a shortcut to
root drive?
In my previous example, I was using explorer.exe with a parameter
that would open the drive I wanted, but I have not been able to figure
out how to get the proper icon for the shortcut.
any help appreciated.
Thanks,
-Garrett
Last edited by Garrett on Sun Jul 17, 2005 2:26 am; edited 1 time in total |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sun Jul 17, 2005 2:26 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 |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Sun Jul 17, 2005 2:43 am Post subject: |
|
|
Nice job there Garrett.
I tried the DDE approach, but didn't know that the shortcut was actually
written to the registry. Hey, I learned something...  _________________ 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 5:45 am Post subject: |
|
|
Not writing to the registry, just getting directory info.
-Garrett |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sun Jul 17, 2005 5:50 am Post subject: |
|
|
Mind you, the regread's are for 2k and XP
-Garrett |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Sun Jul 17, 2005 1:27 pm Post subject: |
|
|
Hi Garrett,
That registry key also applies to Windows 98SE  _________________ 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 9:58 pm Post subject: |
|
|
Ah, ok. I wasn't sure and didn't want to say it did without having tested
it.
-Garrett |
|
| Back to top |
|
 |
|