explorer.exe /root,%userprofile% doesn't work

M

Mike Maley

All,

I am trying to create an explorer window rooted at my profile/home folder.
The following commands all fail with the error "This file does not have a
program associated with it for performing this action. Create an association
in the Set Associations control panel.

explorer.exe /root,%userprofile%
explorer.exe /root,c:\users\michael
explorer.exe /root,::{5E6C858F-0E22-4760-9AFE-EA3317B67173}

Everything works if I use the parent (c:\users) or a child
(c:\users\michael\documents).

Any help is appreciated.

Thanks,
Mike
 
F

Frank Saunders MS-MVP IE,OE/WM

Mike Maley said:
All,

I am trying to create an explorer window rooted at my profile/home folder.
The following commands all fail with the error "This file does not have a
program associated with it for performing this action. Create an
association in the Set Associations control panel.

explorer.exe /root,%userprofile%
explorer.exe /root,c:\users\michael
explorer.exe /root,::{5E6C858F-0E22-4760-9AFE-EA3317B67173}

Everything works if I use the parent (c:\users) or a child
(c:\users\michael\documents).

Any help is appreciated.

Thanks,
Mike

explorer %userprofile%
 
J

Jon

Mike Maley said:
All,

I am trying to create an explorer window rooted at my profile/home folder.
The following commands all fail with the error "This file does not have a
program associated with it for performing this action. Create an
association in the Set Associations control panel.

explorer.exe /root,%userprofile%
explorer.exe /root,c:\users\michael
explorer.exe /root,::{5E6C858F-0E22-4760-9AFE-EA3317B67173}

Everything works if I use the parent (c:\users) or a child
(c:\users\michael\documents).

Any help is appreciated.

Thanks,
Mike




A bit long-winded, but this seems to work here.....


explorer.exe /e,/root,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\%userprofile%
 
M

Mike Maley

Thanks. That works.

Jon said:
A bit long-winded, but this seems to work here.....


explorer.exe
/e,/root,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\%userprofile%
 
K

Kelmscott

Jon said:
I am trying to create an explorer window rooted at my profile/home folder.
A bit long-winded, but this seems to work here.....

explorer.exe /e,/root,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\%userprofile%
Jon

I have a similar issue, but I need to use a GUID to root at a Shell
Namespace Extension. The following string works on Windows XP:

%windir%\explorer.exe /e, /root, ::{AECB9170-4C86-11D2-972E-00A024A82FF3}

but fails on Vista (Home Premium) with the message that Mike Maley was
getting, even though I know the GUID is the same on Vista.

I've tried all sorts of combinations of things, but can't get this working
at all.

To show it's not just my SNE (and also to give something anyone can try, if
they'd like to help), here's the string that opens the Recycle Bin as the
root on XP, but fails exactly as above on Vista.

The Recycle Bin is the same sort of Shell Folder object as my SNE, so
whatever works for that should work for my SNE.

%windir%\explorer.exe /e, /root,
::{645FF040-5081-101B-9F08-00AA002F954E}

TIA

Kelmscott
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top