how i am can put this commandinto visual basicstart localhost.exe 127.0.0.1 8484
how i am can put this commandinto visual basicstart localhost.exe 127.0.0.1 8484
If you want to launch this just put this code in a bat file:
This only works for kms if i am correct 0_0?
Then put the bat in the correct path and launch it.Code:@echo off start ...\localhost.exe 127.0.0.1 8484
i am dont want use this bat command i am want pu this bat into this
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
}
}
}
I posted a example of how to launch a program in C# in your last thread...
http://forum.ragezone.com/f566/launcher-903565/
Google this code and try if you can do it your self
Code:Process.Start()
I need to know how to do this but for C#. I can't run the .bat file because I want I need the parameters of it to change every time. So how can you run bat commands, but with code?
this should work
System.Diagnostics.Process.Start("file location")
That's what I use for my vb launcher.
Your a noob o.o why you remove the handle? Talking about the example u gave. You removed button handle.
Solved it, nevermind.
by the way, visual C# isn't a language (and it's not an IDE either)
YOU NEED IT:
Maybe it helps if you google all overloads for this 2 WORDS of codeCode:"Process.Start()"
Or try this?
Maybe it can explain you how "Process.Start()" WORKS -_-
C# Process.Start Examples
Process.Start Method
When you understand how it works then you need one of those
THIS
or
THIS
OR LET ME GOOGLE IT FOR YOU:
HERE
Last edited by Hilia; 13-01-13 at 02:48 PM.
How I did it:
That's to make the bat in the code, not to just run a bat outside of it.Code:StreamWriter sw = new StreamWriter("run.bat"); sw.WriteLine("@echo off"); sw.WriteLine("echo Put lines here"); sw.Close(); Process.Start("run.bat")