
如何使用批次檔隱藏資料夾及其中的所有內容
我研究了很長時間,卻找不到任何東西。我需要有關製作資料夾的協助隱藏以及其中包含批次文件的其他所有內容。
如果您知道一種簡單的方法或任何方法,我們將非常感激。
PS 我真的只需要能夠隱藏資料夾內的所有內容。
答案1
REM make parent hidden
attrib +h <foldername>
REM make all sub files and folders hidden
attrib +h /s /d <foldername>\*.*
確實不需要進一步的解釋。