none
What is Windows 10 QuickAccess Absolute Path RRS feed

  • Question

  • I need to programmatically access windows 10 QuickAccess,  via Button event.

    This can be achieved invoking a Process.Start , which start the explorer.exe file,  and opens a custom folder which is sent as an argument.  There is no particular issue whit this.

    What I haven't find is what argument should I pass to open the QuickAccess folder or alias or symlink.

    Till Windows 8 it was C:\User\Links,  now it has changed to ?

    Thanks, Jorge

    Friday, November 17, 2017 12:09 AM

All replies

  • You can use the CLSID :

    shell:::{679f85cb-0220-4080-b29b-5540cc05aab6}

    Friday, November 17, 2017 5:57 AM
  • Hello Jorge,

    You could open "QuickAccess" by triggering "windows+E" and the following is a simple demo in using win32 api.

     static class KeyboardSend
        {
            [DllImport("user32.dll")]
            private static extern void keybd_event(byte bVk, byte bScan, int dwFlags, int dwExtraInfo);
    
            private const int KEYEVENTF_EXTENDEDKEY = 1;
            private const int KEYEVENTF_KEYUP = 2;
    
            public static void KeyDown(Keys vKey)
            {
                keybd_event((byte)vKey, 0, KEYEVENTF_EXTENDEDKEY, 0);
            }
    
            public static void KeyUp(Keys vKey)
            {
                keybd_event((byte)vKey, 0, KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP, 0);
            }
        }
    
    
        class Program
        {
            static void Main(string[] args)
            {
    
                KeyboardSend.KeyDown(Keys.LWin);
                KeyboardSend.KeyDown(Keys.E);
                KeyboardSend.KeyUp(Keys.LWin);
                KeyboardSend.KeyUp(Keys.E);
             }
          }

    Sincerely,

    Fei Hu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Sunday, November 19, 2017 9:32 AM
    Moderator
  • Hello datelligence,

    Do you have anything to update?  If you already have got the useful solution from there, you could close the thread by marking the useful reply as answer, This can be beneficial to other community members reading this thread. Thanks a lot.

    Sincerely,
    Neil Hu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Sunday, November 26, 2017 11:43 AM
    Moderator