I have an application that reads an XML file when it is opened, done this manually, but if the application to start with windows does not read the file.
I have an application that reads an XML file when it is opened, done this manually, but if the application to start with windows does not read the file.
If the XML is in the same location as your executable, use the following code:
string caminho = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "\arquivo.xml");