我嘗試升級 Foxit Reader,但它使目錄處於不可讀狀態。我無法查看該目錄,甚至無法刪除它,即使以管理員身份也無法。我該如何刪除它以便重新安裝?
C:\Program Files (x86)\Foxit Software>takeown /f "Foxit Reader"
ERROR: Access is denied.
C:\Program Files (x86)\Foxit Software>takeown /a /f "Foxit Reader"
ERROR: Access is denied.
C:\Program Files (x86)\Foxit Software>icacls "Foxit Reader" /setowner Administrator
Foxit Reader: Access is denied.
Successfully processed 0 files; Failed processing 1 files
甚至運行了 chkdsk,也沒有發現問題:
C:\Program Files (x86)\Foxit Software>chkdsk
The type of the file system is NTFS.
Volume label is OS.
WARNING! F parameter not specified.
Running CHKDSK in read-only mode.
CHKDSK is verifying files (stage 1 of 3)...
643840 file records processed.
File verification completed.
7590 large file records processed.
0 bad file records processed.
CHKDSK is verifying indexes (stage 2 of 3)...
819780 index entries processed.
Index verification completed.
0 unindexed files scanned.
0 unindexed files recovered.
CHKDSK is verifying security descriptors (stage 3 of 3)...
Security descriptor verification completed.
87971 data files processed.
CHKDSK is verifying Usn Journal...
36537832 USN bytes processed.
Usn Journal verification completed.
Windows has scanned the file system and found no problems.
No further action is required.
961180671 KB total disk space.
283748976 KB in 547635 files.
271996 KB in 87972 indexes.
0 KB in bad sectors.
778755 KB in use by the system.
65536 KB occupied by the log file.
676380944 KB available on disk.
4096 bytes in each allocation unit.
240295167 total allocation units on disk.
169095236 allocation units available on disk.
答案1
問題是 Brother Control Center 鎖定了該檔案。我不知道為什麼 Brother Control Center 正在運行 - 我沒有運行它,它不會在啟動時啟動 - 但它有一個鎖。我殺了該進程,目錄消失了。我用「Process Explorer」找到了鎖,並蒐索了「Foxit Reader」。同一進程「BrCtrlCntr.exe」有兩個鎖定。