Found myself in a peculiar situation today morning. Last night just before going to bed, my Windows laptop had crashed which made gvim leave a hidden swap file.
I opened a command prompt window and wanted to get rid of the file after having rescued the contents. But that’s where I got stuck ! The del or erase DOS commands would not work with the /f flag – no luck with brute force.
The solution is actually a bit interestingly convoluted. You have to specify the /a flag to say that you want to select based on some attribute and then put h as the specifier for hidden files.
I had to search for quite some time before I could figure out this. Maybe I am slow, but thought would quickly blog this should some other wayfarer lose her way.
Why did I not chose the Windows Explorer interface ? Programmer’s ego.