467,151 Members | 909 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,151 developers. It's quick & easy.

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

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 :
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
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
  • viewed: 897

Post your reply

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

Similar topics

6 posts views Thread by Charles Neitzel | last post: by
6 posts views Thread by Cliff72@gmail.com | last post: by
14 posts views Thread by =?Utf-8?B?R2lkaQ==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.