Ok, I?m working on a program and have encountered 2 snags.
1 – I need to launch the default program for certain files. For web addresses I need to launch the users default web browser. For txt. Files I would need to run Notepad. For .chm files I would need to run Microsoft HTML Help Executeable. The current line of code I?m trying to use is:
System.Diagnostics.Process.Start(“http://www.webaddress.com”)
Now that may be the right code to use, and any confirmation or advice would be helpful. I do not know if that code works because of the second problems. After I compile the program and run it to test it, I cannot run it again, I get the following error:
Error 1 Unable to copy file “obj\Release\Project.exe” to “bin\Release\Project.exe”. The process cannot access the file ‘bin\Release\Project.exe’ because it is being used by another process.
In previous projects it would automatically close all useage of the .exe file, but not now.
I would very much appreciate any advice relating to how to solve these problems. Thanks for looking.