//将d指定为你要创建的目录的名字String d="D:\\TEST";if(!System.IO.Directory.Exists(d)){System.IO.Directory.CreateDirectory(d);}