在网络上创建文件夹应改用相对路径吧?
能否给帖点代码看看
就是在一个目录下创建个文件夹

解决方案 »

  1.   

    1:相对绝对都可以,但注意一定要把网络路径转换为本地的物理路径才能创建。
    2:由ASP.NET老大们回答吧……
      

  2.   

    是用相对路径,但要转换成绝对路径,用 Server.MapPath
      

  3.   

    可以先获取站点的在磁盘上的物理路径
    HttpRuntime.AppDomainAppPath 就是当前asp.net应用程序根目录所对应的磁盘目录
      

  4.   

    System.IO.Directory.CreateDirectory(Server.MapPath("~/BB/"));
      

  5.   

    下边是本地创建的方法 希望对你有点启发
    string strDirectory = Application.StartupPath+"\\LOG\\"; string strDate = string.Format("{0}-{1:00}-{2:00}",DateTime.Now.Year,DateTime.Now.Month,DateTime.Now.Day);
    strDirectory += strDate; DirectoryInfo DataDir = new DirectoryInfo(strDirectory);