News for hackers. Stuff that matters.
Re:A tale of two path separators by chrismorgan on Sunday June 21, 2026 @11:55AM (#48619977)
And you need `cd /d` to switch drives. This was how I rendered a Windows computer non-bootable for the first time. Ran Command Prompt as admin (because I was logged in as a user that didn’t have write access to D:\backups), and it starts in a rather important directory, then:

  C:\WINDOWS\system32>cd D:\backups\some-huge-directory
  C:\WINDOWS\system32>del /s *
Oops. I learned to look twice before running a big dangerous command. And to use /d.
Re:A tale of two path separators by ChrisSD on Sunday June 21, 2026 @05:30PM (#48622783)
Or you could use powershell and avoid the issue ;).

Though nowadays system files should be protected even from admin and even if you do manage to delete them, Windows can restore them.

Re:A tale of two path separators by chrismorgan on Sunday June 21, 2026 @11:09PM (#48625191)
PowerShell didn’t quite exist back then!
Re:A tale of two path separators by momoraul on Tuesday June 23, 2026 @01:58AM (#48640922)
Oof, cd silently staying on the wrong drive and then del /s is the worst possible version of this. /d the hard way.