Getting data from objects C#

M

Millhouse50

I am in the process of creating an ASP.NET 2.0 website and I was
wondering how I could take valuse that the user has entered into text
boxes and send them through a vbscript. I want to take the arguments
from the two text boxes and put them in the psi.Arguments line to be
command line arguments for my vbscript. Any help is appreciated.



using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
urlLabel.Text = "Enter URL Here ";
ipLabel.Text = "Enter IP Address Here ";
}
protected void webButton_Click(object sender, EventArgs e)
{
System.Diagnostics.ProcessStartInfo psi = new
System.Diagnostics.ProcessStartInfo();
psi.FileName = "C:\\WINDOWS\\system32\\cscript.exe";
psi.Arguments = "C:\\BulkSuperCreate.vbs" + ipTextBox +
urlTextBox;
psi.UseShellExecute = true;
psi.CreateNoWindow = false;
System.Diagnostics.Process.Start(psi);
}
protected void ipTextBox_TextChanged(object sender, EventArgs e)
{

}
protected void urlTextBox_TextChanged(object sender, EventArgs e)
{

}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top