www.pudn.com > PPC_Weather.rar > App.cs


using System; 
using System.Collections.Generic; 
using System.Text; 
 
namespace PPC_Weather { 
   public class App { 
 
       //获得当前程序的绝对路径 
       public static string GetAppPath() { 
           return System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName); //GetName().CodeBase) 
       } 
    } 
}