2
Boas, last week I put here a question:
Automatically save to Default Folder C#
I have now created another form, and I want Load to automatically fetch the file from the Desktop. However I can not put the code below, because if the program was installed on other machines, the program will give error. How do I put the code to go to the Desktop?
CODE
System.Diagnostics.Process.Start(@"C:\Users\NOME\Desktop\File.txt");
Thank you!
A small note: in the future, avoid including the language (C#) in the question title. That’s why there are tags.
– dcastro
I changed the title to better describe the problem.
– dcastro
Right friend @dcastro! ;)
– Don Vito