TCCHere vs. CDD?

May 20, 2008
10,671
83
Syracuse, NY, USA
Using the TCCHere command
Code:
"d:\tc26\tcc.exe" *cdd "%V"
from HKEY_CLASSES_ROOT\Directory\shell\TCC\command, I can start TCC in C:\ProgramData\Microsoft\Windows\WER\ReportArchive\ (and I can read what's in there). However, I cannot otherwise enter that directory. Any ideas?

1601064474182.png
 

samintz

Scott Mintz
May 20, 2008
1,433
13
Solon, OH, USA
I can CD there. I CDD'ed to the WER directory. Then I did a DIR of ReportArchive. Then I CD'ed to ReportArchive.
 
Jun 2, 2008
338
3
There are specific permissions on that folder (instead of inheriting anything from above).

1601072706703.png
 
May 20, 2008
10,671
83
Syracuse, NY, USA
Explorer (context menu) can start TCC with the command line "*cdd C:\ProgramData\Microsoft\Windows\WER\ReportArchive\" and it works.

If Explorer starts TCC and I type that command it doesn't work. That's strange and I can't see what permissions have to do with it.

Another strange one: "Directory" and "Directory\Background" have the same shell\TCC\command ("d:\tc26\tcc.exe" *cdd "%V"). It's the "Directory" one that doesn't work (I misspoke earlier); if I'm in ...\WER and right-click on ReportArchive and choose TCCHere, it fails. But if I'm **IN** WER\ReportArchive" and right click on the background and choose TCCHere, it succeeds
 
May 20, 2008
10,671
83
Syracuse, NY, USA
Here's TCC's echoing its command line after I chose TCCHere from ...

(1) the background while in the ReportArchive directory, and
(2) the ReportArchive folder name while in the WER directory

I think I get it now. The background one succeeds because it's already in there (maybe TCC doesn't even try to CDD. Indeed! I just tested. When the Directory\Shell\TCC\command is executed (i.e., when Explorer is **in** the directory) it's executed with that directory as CWD (the "cdd ..." is not needed and maybe TCC ignores it). Apparently Explorer can **enter** that directory and TCC can't. I still don't understand fully.

1601158615097.png
 
Thread starter Similar threads Forum Replies Date
samintz Support 2
C Support 3
R Support 5
C Support 1
CWBillow Support 8