Edited by Dark Slipstream, 16 August 2009 - 10:27 PM.
iBotModz CBox
(VB.NET & C#) Executing A File
Started by Dark Slipstream, May 11 2009 10:14 PM
8 replies to this topic
#2
Posted 11 May 2009 - 10:16 PM
Thanks, now I can make a fork bomb.
#3
Posted 11 May 2009 - 10:18 PM
If you are trying to execute a .exe file. All you have to do is
Process.Start("C:\\example\\Documents\\Visual Studio 2008\\Projects\\example\\example.exe");
Note : This will not work without "using System.Diagnostics;", if you don't have this in your form, it will not recognize Process.
-Lakar
Process.Start("C:\\example\\Documents\\Visual Studio 2008\\Projects\\example\\example.exe");
Note : This will not work without "using System.Diagnostics;", if you don't have this in your form, it will not recognize Process.
-Lakar
#4
Posted 11 May 2009 - 10:20 PM
Thanks for specifying what was already used above xD.
But seriously, good idea pointing out that System.Diagnostics is required, unless you add it to the top of your program.
But seriously, good idea pointing out that System.Diagnostics is required, unless you add it to the top of your program.
#5
Posted 11 May 2009 - 10:36 PM
Thanks for specifying what was already used above xD.
But seriously, good idea pointing out that System.Diagnostics is required, unless you add it to the top of your program.
They both do the same thing overall, just different ways of writing them.
-Lakar
#6
Posted 16 May 2009 - 08:42 AM
You can also run the process with arguments if acceptable.
Example:
Process.Start("firefox.exe","-url www.ibotmodz.net");
Example:
Process.Start("firefox.exe","-url www.ibotmodz.net");
Edited by dschu012, 16 May 2009 - 08:43 AM.
#7
Posted 16 May 2009 - 09:21 AM
Dark, your c# code isn't proper. c# is case-sensitive, you have "If" it should be "if". Also, brackets should be implemented.
Edited by yungbol, 16 May 2009 - 09:22 AM.
#8
Posted 16 May 2009 - 10:31 AM
The {} aren't needed if you are only executing one line. Keep that in mind for future reference.
I updated the "If" to "if". Thanks.
I updated the "If" to "if". Thanks.
#9
Posted 16 May 2009 - 07:53 PM
Thank you, but Sorry if this does not incorporate with this.
How can u make an AIO, all in one file, like 360-reality?
How can u make an AIO, all in one file, like 360-reality?