Question:
I’m trying to delete all of the desktop.ini
files in a given directory; namely Documents\Gio
. I’ve tried del /S desktop.ini
and del /S *.ini
in cmd (admin mode) and get-childitem .\ -include desktop.ini -recurse | foreach ($_) {remove-item $_.fullname}
and get-childitem .\ -include *.ini -recurse | foreach ($_) {remove-item $_.fullname}
in PowerShell (also admin). Neither have worked. What should I do?
The desktop.ini
files contain the following:
1 2 3 4 5 |
[.ShellClassInfo] InfoTip=This folder is shared online. IconFile=C:\Program Files\Google\Drive\googledrivesync.exe IconIndex=12 |
I move the directory from my Google Drive folder but all the folders still have the shared icons on them. I was trying to change the directory and all it subdirectories and files’ ownership to a different account. I tried to do this with Google Drive but only the root directory changed ownership; I can’t delete any of the files or directories therein.
Answer:
1 2 |
del /s /a desktop.ini |
See
del /?
for help.