Well, if you want to make an application that works in all situations, you need to ensure that it works in all situations. If you are not finding the file you want it is likely that it does not exist at all. At least not where you're looking.
I could show you how to access the desired directory in a different way but I think your problem is quite simple. And another way does not guarantee that it will solve the problem.
You are in:
C:\Users\Lucas\Documents\Visual Studio 2012\Projects\SLN_CAPRO\CAPRO\bin\Debug
When you call:
../arquivos/teste.jpg
means that you are accessing:
C:\Users\Lucas\Documents\Visual Studio 2012\Projects\SLN_CAPRO\CAPRO\bin\arquivos\teste.jpg
That's not what you say the file is:
C:\Users\Lucas\Documents\Visual Studio 2012\Projects\SLN_CAPRO\CAPRO\arquivos\teste.jpg
Then the correct one would be to access it through:
../../arquivos/teste.jpg
But you may want to configure a more complex runtime environment with ProcessStartInfo
:
var processoConfig = new ProcessStartInfo() {
WorkingDirectory = "../../arquivos",
FileName = "teste.jpg"
}
var processo = Process.Start(processoConfig);