How to? Make file accessible

#1
In my C:\TMP directory (which %TMP references) there is a copy of a desktop shortcut file (.LNK) to access control panel's "date and time" feature. This file is marked read-only, and the contents are inaccessible, both from TCC and from Windows Explorer. Changing to read-write does not work, neither from Windows Explorer nor from TCC. The condition has survived several system power off / restart cycles. How can I delete it? BTW, its presence prevents deleting the directory, too.
 
#4
This is XP, and I am an administrator, so elevation is inapplicable, and I already have all the rights necessary to delete anyone's files. DEL/B did not help; the only way another process could hog the file if it is done through the registry. The only user-started programs running are Outlook Express, Firefox, and the single instance of TCC where I tried DEL /B. Used TCC's REBOOT/R command; file is still there...
 

samintz

Scott Mintz
May 20, 2008
1,245
11
Solon, OH, USA
#5
Steve, download a copy of PsExec from SysInternals. That will allow you to run an application as the System user. System usually can delete stuff that other users cannot.

I've used psexec to run regedit as the system user. That allows access to the Security and SAM keys which are otherwise inaccessible.

Code:
psexec -s -i tcc.exe
 
#6
Have you tried using ProcessExplorer to determine if another process has the file open? Who owns the file? Do you get an error message when trying to delete it ... which one?
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,506
46
Albuquerque, NM
prospero.unm.edu
#8
Another option is to boot another copy of WinXP and use it to delete the file. Check out the DaRT application from Microsoft. (Diagnostics and Recovery Toolset).
For that matter, TCC and TCC/LE work reasonably well under Windows PE and BartPE. (Some features don't work, most notably the help system, which requires Internet Explorer. But all of the file-management stuff works fine in PE.)