How to delete a file ending in a dot in Windows 7?
Having tried all of these suggestions and more, I still couldn't delete the offending files.
What finally did it was to use the following syntax (in an elevated command prompt):
del "\\?\<full path to file>"
eg, to use the original example:
del "\\?\C:\cygwin\usr\share\texmf-dist\doc\latex\hausarbeit-jura."
What a really simple solution that I've found. It's the simplest and fastest and easiest way to achieve this. I am now laughing at how simple it is.
- Install WinRAR
- Follow the Step by Step procedure from the pictures:
-
-
-
-
I don't know if you can do it with 7zip, but WinRAR has it and you don't have to buy it, just install the trial and then uninstall it (or probably portables out there but I don't think they are legit i.e. they are possibly cracked.)
Open an elevated command prompt and type in the following commands, pressing Enter after each one:
cd C:\cygwin\usr\share\texmf-dist\doc\latex\hausarbeit-jura\
del *.*
Y
cd c:\
rmdir /s /q C:\cygwin\usr\share\texmf-dist\doc\latex\hausarbeit-jura\
rmdir /s /q C:\cygwin\usr\share\texmf-dist\doc\latex\
rmdir /s /q C:\cygwin\usr\share\texmf-dist\doc\
rmdir /s /q C:\cygwin\usr\share\texmf-dist\
rmdir /s /q C:\cygwin\usr\share\
rmdir /s /q C:\cygwin\usr\
rmdir /s /q C:\cygwin\