attribute "P"?

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
May 20, 2009
216
0
53
ITALY
#1
I downloaded four executable files from an internet site (roxio, if it is important). If I try to run them, I get an error, I believe it is a windows protection system. I should be able to check files properties and see an unblock button. But this button is missing. Anyway, if I use internal attrib command, I see two attributes that seem to be set, the classic "A" and the unknown (to me) "P" (protected?). This happens with tcmd 9.02 registered and with tcc/le 10 and tcc/le 11 beta. Is it possible to set and to remove the "P" attribute with tcmd 9.02 and/or with the latest tcc/le? If not, can You consider it as an addition to wishlist?

Thank You very much

Rodolfo Giovanninetti
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,383
39
Albuquerque, NM
prospero.unm.edu
#2
Re: attribute "P"?

I downloaded four executable files from an internet site (roxio, if it is important). If I try to run them, I get an error, I believe it is a windows protection system. I should be able to check files properties and see an unblock button. But this button is missing. Anyway, if I use internal attrib command, I see two attributes that seem to be set, the classic "A" and the unknown (to me) "P" (protected?). This happens with tcmd 9.02 registered and with tcc/le 10 and tcc/le 11 beta. Is it possible to set and to remove the "P" attribute with tcmd 9.02 and/or with the latest tcc/le? If not, can You consider it as an addition to wishlist?
If I'm not mistaken, that P indicates a "sparse" file. I don't think an executable should be sparse; I'll bet those files are simply corrupt. Try downloading them again.

(Internet file blocking is done via an additional data stream, not attributes. I don't recall the stream name, but DIR /: should reveal it if it's there. It probably isn't, since Explorer doesn't show the relevant button.)
 

rconn

Administrator
Staff member
May 14, 2008
10,100
85
#3
> I downloaded four executable files from an internet site (roxio, if it
> is important). If I try to run them, I get an error, I believe it is a
> windows protection system. I should be able to check files properties
> and see an unblock button. But this button is missing. Anyway, if I use
> internal attrib command, I see two attributes that seem to be set, the
> classic "A" and the unknown (to me) "P" (protected?). This happens with
> tcmd 9.02 registered and with tcc/le 10 and tcc/le 11 beta. Is it
> possible to set and to remove the "P" attribute with tcmd 9.02 and/or
> with the latest tcc/le? If not, can You consider it as an addition to
> wishlist?
The 'P' attribute indicates a "sparse" file, and cannot be changed by
ATTRIB. (Windows limitation; it can only be specified when the file is
created.)

TCC has no control over whether a file can be executed; that's handled by
Windows. You should be able to open an explorer window and right click on
the files to enable them.

Rex Conn
JP Software