>From a MS KB article (KB120716, I think ):

Another option is to use a syntax that bypasses the typical reserve-word
checks completely. For example, you can possibly delete any file with a
command such as: 

DEL \\.\driveletter:\path\filename

For example: 

DEL \\.\c:\somedir\aux 

If the name in the file system appears as a directory, use the following
syntax. 

For example, you can possibly delete any directory with a command such
as: 

RD \\.\<driveletter>:\<path>\<directory name> 

For example: 

RD \\.\c:\somedir\aux 

-or- 

RmDir \\.\<driveletter>:\<path>\<directory> 

For example: 

RmDir \\.\C:\YourFTP_ROOT's_PATH\COM1 /s /q 

/s-This switch removes all directories and files in the specified
directory and also the directory itself. This switch also removes a
directory tree.

/q-This switch stands for Quiet mode. Do not ask if you can remove a
directory tree that contains the /s switch. 

 

The same article talks about some Posix methods as well.

________________________________

From: [email protected] [mailto:[email protected]] 
Sent: Tuesday, July 07, 2009 11:40 AM
To: NT System Admin Issues
Subject: Can't change hidden attribute, nor take ownership, of a file

 


Win2003. One of my users seems to have created a file that is name
"._xxxxx.JPG" (I think this may have come from one of my very few Mac
users, but I don't know that for certain). Anyway, I see the file in
Windows Explorer, and it has an attribute of "H" (hidden). But I can't
seem to change it to be non-hidden. I can't take ownership of the file -
clicking "Properties" shows me only 1 tab - "General".  There is no
"Security" tab.  I have verified that the file system is NTFS. I can not
rename the file, either- "Cannot rename file: cannot read from source
file or disk". (this is the only file this happens on, so I am convinced
that the problem is this file, not the disk) 

>From a command prompt, I see the file when I do a "dir /a". 

04/27/2004  03:44 PM            55,554 ._49 Greene & Rendell.JPG 

However, I can not change the attribute. 

>attrib -h * 
Unable to change attribute - F:\Temp\._49 Greene & Rendell.JPG 

I am unable to take ownership of the file, either, because apparently
the file can't be found ... 

---------------- 
subinacl /file "._49 Greene & Rendell.JPG" /display=owner 
._49 Greene & Rendell.JPG - CreateFile Error : 2 The system cannot find
the file specified. 

Elapsed Time: 00 00:00:00 
Done:        1, Modified        0, Failed        1, Syntax errors
0 
Last Done  : ._49 Greene & Rendell.JPG 
Last Failed: ._49 Greene & Rendell.JPG - CreateFile Error : 2 The system
cannot find the file specified. 
---------------- 

At this point, I am stumped. I can't change attributes, I can't rename,
I can't take ownership (thinking that perhaps I could rename it that
way). 

Thoughts? Pointers? Clues? etc 


-- 
Michael Leone
Network Administrator, ISM
Philadelphia Housing Authority
2500 Jackson St
Philadelphia, PA 19145
Tel:  215-684-4180
Cell: 215-252-0143
<mailto:[email protected]>

 

 

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to