2026-03-05

在 Windows 下讓 del 有個 alias name: rm

在 Windows 下讓 del 指令有個 alias name: rm

方法:

  • 建立 C:\Windows\System32\rm.cmd
  • 內容:
    @echo off
    del %*
結果: c:\> rm a.txt
等於: c:\> del a.txt

沒有留言:

張貼留言