我是这样写,在服务器上创建文件夹没有问题:
exportPath = "d:\\kaola\\code\\temp";
if(!Directory.Exists(exportPath))
{
isTrue = true;
System.IO.DirectoryInfo s = Directory.CreateDirectory(exportPath);
}
但是如果给exportPath = "\\192.168.0.9\\d$\\kaola\\code\\temp"时就不行,也不报错,
有人知道怎么给exportPath 赋值马?怎么赋值!!
exportPath = "d:\\kaola\\code\\temp";
if(!Directory.Exists(exportPath))
{
isTrue = true;
System.IO.DirectoryInfo s = Directory.CreateDirectory(exportPath);
}
但是如果给exportPath = "\\192.168.0.9\\d$\\kaola\\code\\temp"时就不行,也不报错,
有人知道怎么给exportPath 赋值马?怎么赋值!!
----------------------
gabriel1(星空微凉,泪眼汪汪,思念今日更长)
要想在客户端创建文件夹比较麻烦,你参考<asp.net站点高级编程>上面有相关的内容