run dos command from asp.net

aoextra_at_hotmail.com
Date: 11/23/05


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



Relevant Pages

  • Re: Lookup form
    ... I realised that as my "keyfield" wasn't a string I didn't ... Good Luck ... "Tony Williams" wrote: ... 3.On clicking on one of the results it opens another form ...
    (microsoft.public.access.forms)
  • Re: Import Access Table into Excel. I appreciate your assistance. Thanks!
    ... tried merging this as well to fit yours, but still no luck. ... End Sub ... MyTableField1 As String, S1 As String, ...
    (microsoft.public.excel.misc)
  • Re: Combo box for search history?
    ... a value list is simply a text string with each ... >Thank you Jonathan, ... >> separate the entries from ...
    (microsoft.public.access.formscoding)
  • RE: How can i simulate the code in Macro?
    ... Dim MyCriteria As String ... Good Luck ... "ooxx" wrote: ...
    (microsoft.public.access.forms)
  • FindWindowW not working for form controls
    ... I have been trying for hours to get a handle to the controls on my form with no luck. ... I don't even mined looping round all the forms controls getting the handles that way but I cant even see how that could be done cose there doesn't seem to be any enumWindows API. ... static extern IntPtr FindWindowW(string lpClassName, ...
    (microsoft.public.dotnet.framework.compactframework)