March 发表于 2013-2-5 02:17:00

阿斯蒂芬阿斯蒂芬

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]
查看完整版本: 阿斯蒂芬阿斯蒂芬