Windows Explorer

R

Roy

I have arranged to Open Windows Explorer (WE) using the following entry
in the Target entry of the WE Properties:

%SystemRoot%\explorer.exe /e.D:\Program Files

With this arrangement when I clicked on the WE shortcut it would open
with the D:\Program Files folder already opened in the left with the
sub folders showing beneath it and also in the right pane. In the left
pane the sub folders had the + symbols in front of them so I could open
them quickly.

Starting recently, WE has only opened to D:\ showing the Program Files
folder in the left pane with no + symbol in front of it. The right pane
still contains the sub folder. However if I change the
entry to:

%SystemRoot%\explorer.exe /e.D:\Garmen

for example, WE opens to the Garmen folder showing all of the files in
it in the right pane. The problem is only happening when I set the
Target entry to the D:\Program Files folder.

If I change the initial entry above to:

%SystemRoot%\explorer.exe /e.D:\

The D:\ folder opens in the left pane with the + in front of the Program
Files folder with all of the D:\ folders shown in the right pane as normal.

Any ideas of what is preventing the %SystemRoot%\explorer.exe
/e.D:\Program Files entry from opening Windows Explorer as it should?
Any suggestions would be appreciated.
 
A

Alec S.

Roy said:
I have arranged to Open Windows Explorer (WE) using the following entry
in the Target entry of the WE Properties:

%SystemRoot%\explorer.exe /e.D:\Program Files
.
Starting recently, WE has only opened to D:\ showing the Program Files
folder in the left pane with no + symbol in front of it. The right pane
still contains the sub folder. However if I change the
entry to:

%SystemRoot%\explorer.exe /e.D:\Garmen

for example, WE opens to the Garmen folder showing all of the files in
it in the right pane. The problem is only happening when I set the
Target entry to the D:\Program Files folder.
.


Use this instead:
%SystemRoot%\explorer.exe "/e.D:\Program Files"
or this:
%SystemRoot%\explorer.exe /e."D:\Program Files"

When passing paths and files as parameters or arguments, you need to put any that have a space in it in double quotes.

For example
foo.exe C:\Windows\blah
will work, but
foo.exe C:\Program Files\blah
usually won't. You should use
foo.exe "C:\Program Files\blah"



HTH
 
R

Roy

Thanks for the reply Alex. However, I tried using the double quotes as
you indicated and it does not cure the problem. Also I neglected to say
in my first post that I had tried the entry I was using in another XP
Home machine and it works fine. It did work in my XP Pro but started
this problem about 2-3 weeks ago. Perhaps something got clobbered in my
Registry concerning that one folder. I have no idea what though.
 
D

Dave Patrick

Have you tried;

%systemroot%\explorer.exe /e,%programfiles%

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Thanks for the reply Alex. However, I tried using the double quotes as
| you indicated and it does not cure the problem. Also I neglected to say
| in my first post that I had tried the entry I was using in another XP
| Home machine and it works fine. It did work in my XP Pro but started
| this problem about 2-3 weeks ago. Perhaps something got clobbered in my
| Registry concerning that one folder. I have no idea what though.
 
R

Roy

Hi Dave. That opens C:\Program Files but not D:\Program Files. Both
your proposal and my original string will open C:\Program Files if I put
C: in instead of D:. A few weeks ago it worked for D:\Program Files but
no longer. It still does for D:\<other folders>. Strange.

Thanks again.

Roy
 
D

Dave Patrick

What about other folders with spaces in the directory name? Possibly
something amiss in;

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Hi Dave. That opens C:\Program Files but not D:\Program Files. Both
| your proposal and my original string will open C:\Program Files if I put
| C: in instead of D:. A few weeks ago it worked for D:\Program Files but
| no longer. It still does for D:\<other folders>. Strange.
|
| Thanks again.
|
| Roy
 
R

Roy

Thanks Dave. I setup the following:

%SystemRoot%explorer.exe /e,D:\program files\Test Folder

I put several files in test folder. Windows Explorer opened with Test
Folder open showing all of the files and with a - in front of TEST Folder.

This is weird since it won't open to:

%SystemRoot%explorer.exe /e,D:\program files

but it will open a subfolder of Program Files correctly that also has a
blank in the name.

And again the string works correctly in another XP machine here. I'll
do some checking of those two keys, comparing between the two PCs.

Thanks again.

Roy
 
A

Alec S.

Roy said:
Thanks Dave. I setup the following:

%SystemRoot%explorer.exe /e,D:\program files\Test Folder

I put several files in test folder. Windows Explorer opened with Test
Folder open showing all of the files and with a - in front of TEST Folder.

This is weird since it won't open to:

%SystemRoot%explorer.exe /e,D:\program files

Try this one:

explorer /e,D:\Program Files\
 

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