String str="abc#def#hijkl#mn";
string[] s = str.Split(new char[] { '#' });
file类
Copy(String, String) 将现有文件复制到新文件。 不允许覆盖同名的文件。
Copy(String, String, Boolean) 将现有文件复制到新文件。 允许覆盖同名的文件。
openFileDialog1.Multiselect = true;//允许同时选择多个文件
在当前页面的相对路径下的文件夹下,创建它上传的同名的同类型的文件,里面内容为空
File.Create(@"../../uploads/"+p.Name.ToString());
将它上传的文件复制到当前页面的相对路径下的文件夹下,里面文件内容不为空
File.Copy(filename, @"../../uploads/" + p.Name.ToString());
C# 打开指定路径文件夹
string path = @"D:\Program Files";
System.Diagnostics.Process.Start("explorer.exe", path);
string[] s = str.Split(new char[] { '#' });
file类
Copy(String, String) 将现有文件复制到新文件。 不允许覆盖同名的文件。
Copy(String, String, Boolean) 将现有文件复制到新文件。 允许覆盖同名的文件。
openFileDialog1.Multiselect = true;//允许同时选择多个文件
在当前页面的相对路径下的文件夹下,创建它上传的同名的同类型的文件,里面内容为空
File.Create(@"../../uploads/"+p.Name.ToString());
将它上传的文件复制到当前页面的相对路径下的文件夹下,里面文件内容不为空
File.Copy(filename, @"../../uploads/" + p.Name.ToString());
C# 打开指定路径文件夹
string path = @"D:\Program Files";
System.Diagnostics.Process.Start("explorer.exe", path);