Saturday 23 December 2017

Windows, and missing my rm -rf

Whilst I know that things like PowerShell gives me Unix-like capabilities on Windows, I was looking for a Q&D solution.

All I wanted to do was to remove an entire directory structure.

Back in the day, we had deltree but that appears to have gone in later versions of Windows.

However, we do have rmdir which does the job, as per this example: -

rmdir C:\IBM /S/Q

whereas my muscle memory would be do use this: -

rm -Rf /IBM

In the words of the prophet, good luck with that.

2 comments:

Unknown said...

Take a look at CMDER, a command line replacement (incl. a git client) which brings back all known Linux/Unix shell commands to the Windows world: http://cmder.net

Dave Hay said...

Hi Oliver

Many thanks, I’ll check that out.

Merry Christmas, Dave

Visual Studio Code - Wow 🙀

Why did I not know that I can merely hit [cmd] [p]  to bring up a search box allowing me to search my project e.g. a repo cloned from GitHub...