rt
谢谢

解决方案 »

  1.   

    string path=System.Windows.Forms.Application.StartupPath  //path为你的C/S程序启动路径,你可以在此路径基础上调用或设置相对路径谢谢.
      

  2.   

    Application.StartupPath是exe执行的路径,你可以使用这个路径为基础,访问该目录下的子目录。
      

  3.   

    string str = Assembly.GetExecutingAssembly().GetName().CodeBase; 
          if (str.ToLower().IndexOf("file:///") >= 0) 
          { 
              str = str.Substring(8, str.Length - 8); 
          } 
          string path = System.IO.Path.GetDirectoryName(str);

    Application.StartupPath
      

  4.   

    Application.StartupPath
      

  5.   

    Application.StartupPath+ "";
      

  6.   

    10种方法可获取http://www.qimao.cn/article.asp?id=179