[精讚] [會員登入]
418

在windows環境下強制刪除無法以檔案總管刪除的檔案或目錄

how to remove directories or files that cannot be deleted by default file manager

分享此文連結 //n.sfs.tw/13287

分享連結 在windows環境下強制刪除無法以檔案總管刪除的檔案或目錄@外行中的外行
(文章歡迎轉載,務必尊重版權註明連結來源)
2019-08-09 10:47:29 最後編修
2019-05-13 12:28:32 By jung
 

外行人我在把ubuntu的目錄複製到windows環境下,常遇到權限問題,明明已經都用過chmod 777改過了,許多隱藏檔案還是無法被微軟系統辨識

導致在微軟系統環境下,無法以檔案總管或是右鍵模式來刪除

爬文找了一些文章

有位高手的答案才是正解

先用文字編輯器寫一個只有二行的bat程式,內容如下

DEL /F /A /Q \\?\%1
RD /S /Q \\?\%1
 

 

另存成.bat

然後把無法刪除的檔案或目錄直接用滑鼠拖曳到這個bat的上面,使用這個bat檔來開啟

這樣就順利刪除了

參考文獻

http://www.yenchen-design.com/diary/windows-%E5%BC%B7%E5%88%B6%E5%88%AA%E9%99%A4%E6%AA%94%E6%A1%88%E5%8F%8A%E8%B3%87%E6%96%99%E5%A4%BE/

 

END

你可能感興趣的文章

使用bash script 顯示及比較記憶體剩餘用量 How to get the available memory reported as a percentage then compare Numbers and Strings in Linux Shell Script

設定win10開機自動執行openvpn連接vpn server how to make win10 connecting to a vpn server automactically after booting up

使用群暉NAS內建VPN SERVER套件的OPENVPN功能注意事項 使用群暉NAS內建VPN SERVER套件的OPENVPN功能注意事項

zfs on ubuntu 20.04 how to destroy zfs pool while error message said pool is busy

啟動chrome時要求須輸入密碼enter password to unlock login keyring asking for entering password to unlock login kerying on Ubuntu desktop

ubuntu18.04網路設定無法啟動問題 network connection failed due to networkmanager settings

我有話要說

>>

限制:留言最高字數1000字。 限制:未登入訪客,每則留言間隔需超過10分鐘,每日最多5則留言。

訪客留言

[無留言]

隨機好文

在windows server建立radius服務使用active directory帳號驗證 setup windows server to add radius service using active directory accounts for authentication

How to deal windows10 with lost bootloader issue 如何修復Windows 10 丟失UEFI引導 (bootloader)無法開機

macbook pro 2019翻蓋就開機問題 macbook automatically boot itself while lifting screen up

使用letsEncrypt替換docker容器內的nginx https憑證 using cerbot for nginx on oracle linux 9