获取工程的exe文件的所在目录
Assembly.GetExecutingAssembly().ManifestModule.FullyQualifiedName;
例如结果为:
C:\Documents and Settings\tll\Local Settings\Application Data\Temporary Projects\urlForm\bin\Debug\urlForm.exe
Assembly.GetExecutingAssembly().ManifestModule.FullyQualifiedName;
例如结果为:
C:\Documents and Settings\tll\Local Settings\Application Data\Temporary Projects\urlForm\bin\Debug\urlForm.exe