Delete multiple files at the same time

xiaoxiao2021-03-06  65

Foreach (String S in Directory.GetFiles ()) {if (S.StartSwith ("ab")) {Directory.Delete (s);}} or

Directory.delete (s); -------------- file.delete (s);

Execute the DOS command DEL as Process.start ("CMD Del Ab * .txt") with process.start; // should pay attention to the directory

转载请注明原文地址:https://www.9cbs.com/read-119695.html

New Post(0)