Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
指定したパスのサブフォルダーにあるすべてのサブフォルダーとファイルを削除したい。
私はC#コーディングが初めてで、助けてください。
「C:\Files\aaa-426962\15-02-2013\index.html」というパスがあるとします。
「C:\Files\aaa-426962」を指定すると、「C:\Files\aaa-426962」の下にあるすべてのサブフォルダーとファイルを削除する必要があります。
前もって感謝します。
global::System.IO.Directory.Delete(@"C:\Files\aaa-426962", true);