Hi everyone.
I have a biginner question and I hope that someone could help me.
I have a .exe file and a .bat file in the same folder.
I want to make that a bottom could open the .bat file, but I dunno the way to open it. Process.Start("???")
I thought that it was ...\\batfile.bat but it doesn't work.
How can I run the file that it on the same folder that the .exe file?
Tnks.
When your .exe is run, it need not be invoked from the same folder that it is in. There are a couple of ways to fix this, but on Windows you can just ask for your .exe's file name:
Nop...
I will explaind better.
I wanna go to the same path that my .exe file is, so I'v wroten: Process.Start("../batfile.bat")
But it doesn't work.
How can I make it work?