XmlDocument _document = new XmlDocument();
_document.Load("Config.xml");
写个小程序,在开机启动的时候运行
一运行到这一步,就提示错误. 不设置开机启动运行,直接点击运行却没有问题!
把其中的Config.xml文件路径改成“C:\\Config.xml” 绝对路径,加在开机运行里面就没问题! 奇怪了!为什么?
_document.Load("Config.xml");
写个小程序,在开机启动的时候运行
一运行到这一步,就提示错误. 不设置开机启动运行,直接点击运行却没有问题!
把其中的Config.xml文件路径改成“C:\\Config.xml” 绝对路径,加在开机运行里面就没问题! 奇怪了!为什么?
System.IO.FileNotFoundException: Could not find file 'C:\Documents and Settings\User\Config.xml'.
奇怪 怎么会到这个路径?