阿斯蒂芬阿斯蒂芬
public static bool Delete(User path) { path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, path); try { if (File.Exists(path)) { File.Delete(path); return true; } else { return true; } } catch (Exception e) { e.Message.ToString(); return false; } }
页:
[1]