AutoHotkey Community

It is currently May 27th, 2012, 7:14 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: March 23rd, 2006, 6:17 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
Quote:
How to start Windows Explorer with a Drive letter?
http://www.autohotkey.com/forum/viewtopic.php?p=53455#53455

This was my first post in Scripts section : If you hate Win+E to start Windows Explorer

The following code assigns 26 Hotkeys to all 26 drives.
The "Drive Letter" should be prefixed with Shift+Win Modifier.
This code opens "CabinetWClass" Explorer Window for a particular drive

Code:
Loop 26
   HotKey % "+#" Chr(A_Index+64), ExploreDrive
Return

ExploreDrive:
   StringRight Drv,A_THISHOTKEY,1
   ifExist %Drv%:\
      Run %Drv%:\
   else
      Msgbox 16,[HotKey for Drive %Drv%],%Drv%: is NOT Accessible!,5
Return
  • Credit: The above is the simplified code of my original version and was posted by Laszlo. His Post.
    Example:
    To Explore C: press Shift+Win+C.
    Likewise for D: press Shift+Win+D
    and so for any drive.

    Additional Tip: To open a "CabinetWClass" Explorer Window with all available drives.
    Code:
    Run explorer.exe ::{20D04FE0-3AEA-1069-A2D8-08002B30309D} ; by Chris


Last edited by SKAN on June 16th, 2008, 7:23 am, edited 3 times in total.

Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Stigg and 22 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group