U
U
UltraLightUser12kbmemory2018-12-30 19:13:33
Windows
UltraLightUser12kbmemory, 2018-12-30 19:13:33

Delete hidden macOS files on Windows?

Transferred macOS (HFS+) files to an external hard drive (exFAT).
There are millions of hidden files ._.DS_Store and ._filename left on the disk.
How can I clear the disk of these files?
On the Internet, they offer the command rm -rfi .* but it can, in theory, touch non-hidden files?
I am using Windows.
edit: rm -rfi on Windows doesn't work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Ezhyg, 2019-12-31
@Ezhyg

How I do it:
I'm translating the game , the author recently bought a stubbook for himself (it seems) and now he regularly forgets to remove this garbage before the release of the game. I took the nircmd utility from the NirSoft utility kit, created a batch file Del_AppleTrash.batto run:

@echo off
echo Удаление огрызочного мусора
nircmd.exe elevatecmd script Del_AppleTrash.ncl

and a simple script Del_AppleTrash.nclcalled by this batch file:
execmd del ".DS_Store" /F /S
execmd del "Del_AppleTrash.ncl" /F
execmd del "nircmd.exe" /F
execmd del "Del_AppleTrash.bat" /F

I throw the kit into the right folder, run the batch file, it goes through all the subfolders, deleting the "garbage", then deletes the script, then the utility, then the batch file - no trace :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question