There exist files in windows 7 which can't be deleted using cygwin "rm"
command. Files are visible from windows command line or Windows Explorer
but are invisible by "ls -lA" command:
$ ls -lA `cygpath 'C:\ProgramData\Microsoft\Diagnosis\DownloadedSettings'`
total 16
-rwxrwx---+ 1 Administrators SYSTEM 1016 Aug 23 2017
telemetry.ASM-WindowsDefault.json.bk
-rwxrwx---+ 1 Administrators SYSTEM 795 Aug 23 2017 utc.app.json.bk
Dir command from cmd.exe shows that there are 2 more files (with
extension .json) previously invisible:
c:\> dir C:\ProgramData\Microsoft\Diagnosis\DownloadedSettings /b
telemetry.ASM-WindowsDefault.json
telemetry.ASM-WindowsDefault.json.bk
utc.app.json
utc.app.json.bk
It seems to be connected with the temporary attribute which both 2
mentioned files have set:
c:\> for %i in
(C:\ProgramData\Microsoft\Diagnosis\DownloadedSettings\*) do @echo %~ai %i
--a----t-
c:\ProgramData\Microsoft\Diagnosis\DownloadedSettings\telemetry.ASM-WindowsDefault.json
--a------
c:\ProgramData\Microsoft\Diagnosis\DownloadedSettings\telemetry.ASM-WindowsDefault.json.bk
--a----t- c:\ProgramData\Microsoft\Diagnosis\DownloadedSettings\utc.app.json
--a------
c:\ProgramData\Microsoft\Diagnosis\DownloadedSettings\utc.app.json.bk
Together with above mentioned 2 files
C:\ProgramData\Microsoft\Diagnosis\DownloadedSettings\utc.app.json
C:\ProgramData\Microsoft\Diagnosis\DownloadedSettings\telemetry.ASM-WindowsDefault.json
I have found three more files in Windows 7
C:\ProgramData\Microsoft\Network\Downloader\qmgr0.dat
C:\ProgramData\Microsoft\Network\Downloader\qmgr1.dat
C:\Users\%USERNAME%\AppData\Local\Microsoft\Office\15.0\OfficeFileCache\LocalCacheFileEditManager\FSD-CNRY.FSD
with the same behavior (invisible by ls, undeletable by rm but visible
from windows) and all have the temporary attribute set.
Files are invisible/undeletable with ls/rm even from WindowsPE which
does not run from C: disk and can not keep those files open.
Pavel Kudrna
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple