一个批处理文件这样运行程序:
@echo off
start "%~dp0outdir\Debug\MyApp.exe" "%~dp0outdir\config\MyApp.xml" start "%~
@echo off
start "%~dp0outdir\Debug\MyApp.exe" "%~dp0outdir\config\MyApp.xml" start "%~