当程序保存在局域网中的某个邻居上面的时候,可以用如下的语句取得实际的保存路径: GetStartUpPath = AppDomain.CurrentDomain.SetupInformation.ApplicationBase