P
Paul Bergson
I have been trying to get a process to start up and run with arguments
passed to it. I have gotten close (Thanks to help from this board) but I
there is a failure while I'm running this because the c:\bin\xcacls starts
nothing happens.
How can I see output from the console i was trying to get the
ProcessStartInfo.RedirectStandardOutput Property to work but even if I got
the system to process it I didn;t know where the output was being sent. I'm
in over my head but hoping to try and get this to run.
Anybody know what I can do to get this to give me the output?
<%@ Page Language="vbscript" Debug="true" %>
<script runat="server">
Sub submit(sender As Object, e As EventArgs)
Dim csc As System.Diagnostics.Process = New System.Diagnostics.Process()
csc.StartInfo.FileName = "c:\bin\xcacls"
csc.StartInfo.Arguments = "c:\blaster /G GOB\pbergson:F /Y"
csc.Start()
End Sub
</script>
<html>
<body>
<form runat="server">
<asp:Button OnClick="submit" Text="Submit" runat="server" />
<p><asp:Label id="lbl1" runat="server" /></p>
</form>
</body>
</html>
Thank-You
passed to it. I have gotten close (Thanks to help from this board) but I
there is a failure while I'm running this because the c:\bin\xcacls starts
nothing happens.
How can I see output from the console i was trying to get the
ProcessStartInfo.RedirectStandardOutput Property to work but even if I got
the system to process it I didn;t know where the output was being sent. I'm
in over my head but hoping to try and get this to run.
Anybody know what I can do to get this to give me the output?
<%@ Page Language="vbscript" Debug="true" %>
<script runat="server">
Sub submit(sender As Object, e As EventArgs)
Dim csc As System.Diagnostics.Process = New System.Diagnostics.Process()
csc.StartInfo.FileName = "c:\bin\xcacls"
csc.StartInfo.Arguments = "c:\blaster /G GOB\pbergson:F /Y"
csc.Start()
End Sub
</script>
<html>
<body>
<form runat="server">
<asp:Button OnClick="submit" Text="Submit" runat="server" />
<p><asp:Label id="lbl1" runat="server" /></p>
</form>
</body>
</html>
Thank-You