If you have a windows server and a mac client, the mac will put resource fork files on your shares. These files sometimes are not removable or even readable by windows.
Sometimes a client (Win or Mac) will save an incredibly long file name to their home directory. When it comes to server migration or just cleaning them up they can be troublesome.
To remove them you have to get the DOS 8.3 equivalent filename and remove them on the command line.
Lets say the troubled file is a system file called ._dan
To remove it list the directory like this if the file had a hidden attribute…
dir /X E:\home\users\username\ /AH
From that list I found the file I was looking for and made this command to delete the file…
del /aH E:\home\users\username\_DAN~1
If the file was not hidden just remove the /AH…
Or there is an incredibly long filename…
This entry was posted in Windows
and tagged DeleteFiles
. Bookmark the permalink