Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Execute file on server

Execute file on server

Scheduled Pinned Locked Moved ASP.NET
sysadminhelpquestion
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    netDeveloper
    wrote on last edited by
    #1

    Hi, I want to make a webform that executes a program on the server.I have tried to run notepad using System.Diagnostics.Process.Start("notepad.exe") but i didn't have any luck.Could you please help me? Thanks.

    H V 2 Replies Last reply
    0
    • N netDeveloper

      Hi, I want to make a webform that executes a program on the server.I have tried to run notepad using System.Diagnostics.Process.Start("notepad.exe") but i didn't have any luck.Could you please help me? Thanks.

      H Offline
      H Offline
      Haissam
      wrote on last edited by
      #2

      Check the below link My Blog HC

      Best Regards, Haissam Abdul Malak My Blog

      N 1 Reply Last reply
      0
      • H Haissam

        Check the below link My Blog HC

        Best Regards, Haissam Abdul Malak My Blog

        N Offline
        N Offline
        netDeveloper
        wrote on last edited by
        #3

        Thanks,but after searching the internet i found out that it could be an iis setup issue.do you have an idea?Tks.

        N 1 Reply Last reply
        0
        • N netDeveloper

          Thanks,but after searching the internet i found out that it could be an iis setup issue.do you have an idea?Tks.

          N Offline
          N Offline
          netDeveloper
          wrote on last edited by
          #4

          This is the code i am trying to execute: ProcessStartInfo psi=new ProcessStartInfo(@"C:\test.bat"); psi.UseShellExecute=false; psi.WorkingDirectory=@"C:\"; Process.Start(psi);

          1 Reply Last reply
          0
          • N netDeveloper

            Hi, I want to make a webform that executes a program on the server.I have tried to run notepad using System.Diagnostics.Process.Start("notepad.exe") but i didn't have any luck.Could you please help me? Thanks.

            V Offline
            V Offline
            Vasudevan Deepak Kumar
            wrote on last edited by
            #5

            Dangerous to run exe like that.

            Vasudevan Deepak Kumar Personal Homepage Tech Gossips

            N 1 Reply Last reply
            0
            • V Vasudevan Deepak Kumar

              Dangerous to run exe like that.

              Vasudevan Deepak Kumar Personal Homepage Tech Gossips

              N Offline
              N Offline
              netDeveloper
              wrote on last edited by
              #6

              I really need a solution on how to allow asp.net_wp execute a file:) I know it's dangerous but this is what i have to do.And i was hoping you could tell me

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups