bL4cKh4T
Baseband Member
- Messages
- 57
- Location
- Jacksonville, Fl
so i'm making this program to automate certain tasks. what I want to do is open an exe file inside of my program, i'm using c# btw. here is what I have:
i made a button in visual studio and wrote this code for the button. this is set to open the file 01.exe in the same directory as the program but what I want to do is open it in a different directory than the program and I want my program to be able to point to the .exe file even if i move the program and folder that the exe file is in to a flash drive. the file is going to be in a folder called "files" and from the command prompt, i can get to the exe file in the files folder by typing ./files/01.exe but i don't know how to write that in the script. sorry if I am a little confusing. i'm still learning the language. thanks for any help you can give!
Code:
System.Diagnostics.Process.Start("01.exe");