run dos command from asp.net
aoextra_at_hotmail.com
Date: 11/23/05
- Next message: Dominick Baier [DevelopMentor]: "Re: Help in forms authentication"
- Previous message: [MSFT]: "Re: Transfer authentication token - how to single sign-on"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 22 Nov 2005 21:34:14 -0800
I tried the following but of no luck
I did impersonation and elevate user permission but still I wasn't able
to run dos commands from asp.net . I'b been browsing the internet and
mostly what they're saying I already did but still of no luck, is there
anything else I'm missing.
my code is something like this :
Shared Sub RunProcess(ByVal proc As String, ByVal arg As String)
Try
Dim p As New Process
p.EnableRaisingEvents = True
If proc Is Nothing Then proc = ssExec
p.StartInfo = New ProcessStartInfo(proc, arg)
p.StartInfo.RedirectStandardOutput = True
p.StartInfo.UseShellExecute = False
p.Start()
catch
end try
End Sub
Also in my web.config I have the following line:
<identity impersonate="true" />
Thanks in advance
- Next message: Dominick Baier [DevelopMentor]: "Re: Help in forms authentication"
- Previous message: [MSFT]: "Re: Transfer authentication token - how to single sign-on"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|