解决,白瞎10分
分享一下  :)string appPath=Application.StartupPath;
System.IO.DirectoryInfo topDir=System.IO.Directory.GetParent(appPath);string topDirPath=topDir.FullName;//topDirPath即上层目录

解决方案 »

  1.   

    using System;namespace ConsoleApplication1
    {
    /// <summary>
    /// Class1 的摘要说明。
    /// </summary>
    class Class1
    {
    /// <summary>
    /// 应用程序的主入口点。
    /// </summary>
    [STAThread]
    static void Main(string[] args)
    {
    string srtPath = "c:\\1234\\2345\\3456\\";
    Console.WriteLine(GetparentDir(srtPath));
    Console.ReadLine(); }
    public static string GetparentDir(string dir)
    {
    //判断是否以"\"结尾
    if(dir.LastIndexOf("\\")==dir.Length-1)
    {
    dir = dir.Substring(0,dir.Length-1);
    }
    return dir.Substring(0,dir.LastIndexOf("\\")+1);
    }
    }
    }
      

  2.   

    csdn好象是根据登陆来加分的 不过这一段我的可用分也没增加
      

  3.   

    http://expert.csdn.net/Expert/topic/2808/2808527.xml?temp=.9199335应该还是每天10分,不过不是每天结,而是隔一段时间一块给
    不知道csdn为什么要这样,我们也只是管理,规矩不是我们定的
    大家可以到投诉区反映