I want to run a batch file from my asp.net page, but I am a complete dunce and I can't figure out what I am doing wrong.
I have some VB code that works when I run it
Module Module1
Sub Main()
Dim p As New ProcessStartInfo
p.WorkingDirectory = "c:\scripts"
p.FileName = "runme.bat"
p.UseShellExecute = True
Process.Start(p)
End Sub
End Module
How do I use this code in asp.net (aspnet account has logon locally perms)
I tried encasing it in <% %> or <script runat="server></server> but VS 2008 complains about ProcessStartInfo is not defined and Process is not declared (after removing Module and End Module) in the script.
Basically, what I am trying to do is have a page that when accessed, will kick off the script which will generate a jpeg and then display it. This will h ...
Go to the complete details ...