Shell Command

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • senthil

    Shell Command

    Hi My name is Senthil . I am trying to run bat file from Asp.net using shell
    command but it failed . The bat file is in server . The purpose of running
    this bat file is to do an ftp from server to mainframe . It runs good in
    vb.net . When I try to run or open this batch file from server it does the
    ftp but not from Asp.net application.
    I willl be thankful to people if my problem is solved. I will be happy to
    know if there is an other way of doing an ftp from server to mainframe
    without the running bat file or without using shell command .


    Thanks

    Senthil


  • Darren Clark

    #2
    Re: Shell Command

    have a look at the
    Process Class

    it allows you to run applicatoins etc..

    "senthil" <please@dontsen dmail.com> wrote in message
    news:evp3E8EPEH A.2960@TK2MSFTN GP10.phx.gbl...[color=blue]
    > Hi My name is Senthil . I am trying to run bat file from Asp.net using[/color]
    shell[color=blue]
    > command but it failed . The bat file is in server . The purpose of[/color]
    running[color=blue]
    > this bat file is to do an ftp from server to mainframe . It runs good in
    > vb.net . When I try to run or open this batch file from server it does[/color]
    the[color=blue]
    > ftp but not from Asp.net application.
    > I willl be thankful to people if my problem is solved. I will be happy to
    > know if there is an other way of doing an ftp from server to mainframe
    > without the running bat file or without using shell command .
    >
    >
    > Thanks
    >
    > Senthil
    >
    >[/color]


    Comment

    • Steve C. Orr [MVP, MCSD]

      #3
      Re: Shell Command

      The default ASPNET user account may not have permissions to execute this
      operation.
      To solve this problem, you could use impersonation to have it run under a
      different user account. For testing purposes, you could use yours.
      Here's more information:


      --
      I hope this helps,
      Steve C. Orr, MCSD, MVP



      "senthil" <please@dontsen dmail.com> wrote in message
      news:evp3E8EPEH A.2960@TK2MSFTN GP10.phx.gbl...[color=blue]
      > Hi My name is Senthil . I am trying to run bat file from Asp.net using[/color]
      shell[color=blue]
      > command but it failed . The bat file is in server . The purpose of[/color]
      running[color=blue]
      > this bat file is to do an ftp from server to mainframe . It runs good in
      > vb.net . When I try to run or open this batch file from server it does[/color]
      the[color=blue]
      > ftp but not from Asp.net application.
      > I willl be thankful to people if my problem is solved. I will be happy to
      > know if there is an other way of doing an ftp from server to mainframe
      > without the running bat file or without using shell command .
      >
      >
      > Thanks
      >
      > Senthil
      >
      >[/color]


      Comment

      Working...