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 


Creating a shortcut to a drive? [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: Sun Jul 17, 2005 1:57 am    Post subject: Creating a shortcut to a drive? [RESOLVED] Reply with quote

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
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:26 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
ShinobiSoft
Professional Member
Professional Member


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

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

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

_________________
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 5:45 am    Post subject: Reply with quote

Not writing to the registry, just getting directory info.

-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 5:50 am    Post subject: Reply with quote

Mind you, the regread's are for 2k and XP

-Garrett
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: Sun Jul 17, 2005 1:27 pm    Post subject: Reply with quote

Hi Garrett,

That registry key also applies to Windows 98SE 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
Garrett
Moderator Team


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

PostPosted: Sun Jul 17, 2005 9:58 pm    Post subject: Reply with quote

Ah, ok. I wasn't sure and didn't want to say it did without having tested
it.

-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