By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,594 Members | 2,016 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,594 IT Pros & Developers. It's quick & easy.

get values from asp.net pass to batch file !!!

P: 1
Hello everyone
i'm new to asp.net i'm looking to How to get values (Variables) pre Declared in web form & pass it to a batch file.
coz i've to get this values to be added to the batch file to Automate the
process of creating records & Zones in our DNS server
--------------------------
So, as a simple example i'll suppose to create a new folder on drive C:\
the name of this folder will come from the asp.net web form.
i searched & get closer to the following Code
--------------------------
so again , my batch file will be (C:\Do.bat) --------- > & i wrote in it for
example :
==========
@ECHO OFF
mkdir c:\%A%
========== is this correct ?
in ASP.net i've a text Box & a button
i imported:
Imports System
Imports System.Diagnostics
Imports System.ComponentModel
& when I press the Button :
==============================
Dim A As String
A = TextBox1.Text
Dim p As New Process
With p
With p.StartInfo
.FileName = "C:\Do.bat"
.Arguments = A
End With
.Start()
.WaitForExit()
End With
==============================
I get the following Error:
'StartInfo' is not a member of 'Process'.

May you tell me what i missed ?
Thanks in advance
Nov 24 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.