Hey guys, is there any possible way to run an .exe that I put in my resources? If so, can someone give me the code? Thanks in advance +rep
Hey guys, is there any possible way to run an .exe that I put in my resources? If so, can someone give me the code? Thanks in advance +rep
Last edited by Neth'zul; 11-19-2008 at 10:34 PM.
Explain what you mean...
Ok well, lets say I click a button named Web browser, then when I press it, it opens a web browser I made, now this is NOT what im doing, it just an example.
System.Diagnostics.Process.Start(System.AppDomain.CurrentDomain.BaseDirectory() & "\subdirectory of the directory the app you're launching from\apptolaunch.exe")
Thanks ReidE96 +rep
EDIT: So would it be like this
System.Diagnostics.Process.Start(System.AppDomain.CurrentDomain.BaseDirectory() & "My.Resources/program") ??
Last edited by Neth'zul; 11-18-2008 at 10:38 PM.
Ignore that before it confuses you.
On the code for your button, put this:
Basically, that just opens WoW. Hopefully that gives you an idea of how it works.Code:System.Diagnostics.Process.Start("C:\Program Files\World of Warcraft\wow.exe")
Thank you, so I would do kinda the same thing with resources like
System.Diagnostics.Process.Start("My.Resources.program")
If I'm understanding you correctly then yes. Just try it out, have a play with it.
Bleh, didn't work >,<
Explain to me in better detail what you want to do...
...I'm lost at the "resources" part..
Ok, you know your have your resource? Well i want to put a file into my resources and be able to open it. Example My.Computer.Audio.Play(My.Resources.musicname) except with a .exe
add me on msn [email protected]
Well do what I said but er.. I don't know why you're using dots when there should be slashes.
Remember the quotation marks.
Find the directory and do it like this:
Just make sure the .exe is in the resources..Code:System.Diagnostics.Process.Start("C:\My Resources\example.exe")
Ok, would this work for OTHER people as well, not just me..
Only if you include the .exe's in the folder that you give them.
Basically, their directory would have to be the same as yours.