Monday, March 26, 2012

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
Senthilhave a look at the
Process Class
it allows you to run applicatoins etc..
"senthil" <please@.dontsendmail.com> wrote in message
news:evp3E8EPEHA.2960@.TK2MSFTNGP10.phx.gbl...
> 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
>
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:
http://msdn.microsoft.com/library/d...personation.asp
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"senthil" <please@.dontsendmail.com> wrote in message
news:evp3E8EPEHA.2960@.TK2MSFTNGP10.phx.gbl...
> 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
>

0 comments:

Post a Comment