简单记录-路径问题
winform下面使用了
AppDomain.CurrentDomain.BaseDirectory这个路径,但是如果winform以管理员身份运行之后。它指向的位置就是系统盘了。
C:\Users\%SystemUser%\AppData\Local\Temp\ 大约是这样。
如果还要找到当前运行的路径
System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location)应该使用这个。