vs.net编程技巧
1.获取程序的运行目录的方法:
using System.Reflection;
using System.IO;
Assembly asm=Assembly.GetExecutingAssembly();
string AppPath=Path.GetDirectoryName(asm.Location);
using System.Reflection;
using System.IO;
Assembly asm=Assembly.GetExecutingAssembly();
string AppPath=Path.GetDirectoryName(asm.Location);