Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Fixed Can't find ATTRIB.EXE

May
12,957
172
This is buried in another thread. According to ProcessMonitor, TCC doesn't even look in c:\windows\system32.

Code:
v:\> echo %@word[";",3,%path]
C:\WINDOWS\system32

v:\> which /a attrib
attrib is an internal command
attrib is an external : C:\WINDOWS\system32\attrib.EXE

v:\> attrib.exe
TCC: (Sys) The system cannot find the file specified.
 "V:\.exe"
 
I see the same on my system: TCC 31.00.10 x64 Windows 10 [Version 10.0.19045.3448]
regards
Rodolfo Giovanninetti
 
Using the Option command;
1696176311041.png

This disables the internal ATTRIB command.

Code:
E:\Utils>which attrib 
attrib is an external : C:\WINDOWS\system32\attrib.exe
Now the external attrib.exe works;
Code:
E:\Utils>attrib.exe *.ico 
A                    E:\Utils\Hardware.ico
A                    E:\Utils\in-line calculator.ico
A                    E:\Utils\Note.ico
A                    E:\Utils\percentchange.ico

Joe
 
That behavior is quite different from that of TASKLIST, for which there's an internal and an external.

Code:
v:\> which /a tasklist
tasklist is an internal command
tasklist is an external : C:\WINDOWS\system32\tasklist.EXE

v:\> tasklist.exe | head /n4

Image Name                     PID Session Name        Session#    Mem Usage
========================= ======== ================ =========== ============
System Idle Process              0 Services                   0          8 K

v:\> tasklist | head /n4
    0  [System Process]
    4  System
   88  Secure System
  156  Registry
 
Last edited:
And HEAD.EXE and TAIL.EXE (both findable via %PATH) work like TASKLIST and not like ATTRIB.

CHCP (vs. CHCP.COM) too.
 
ATTRIB allows an immediately trailing '.' to specify the current directory. As does a few other commands like DIR, and (for other reasons) ECHO. That prevents TCC from searching for an ATTRIB.EXE.

I have made a (breaking) change to 31.0.11 to disallow the trailing '.'; we'll see how many users complain about that ...
 

Similar threads

Back
Top