473,388 Members | 1,346 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

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
Nov 18 '05 #1
2 1492
have a look at the
Process Class

it allows you to run applicatoins etc..

"senthil" <pl****@dontsendmail.com> wrote in message
news:ev**************@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

Nov 18 '05 #2
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/de...ersonation.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"senthil" <pl****@dontsendmail.com> wrote in message
news:ev**************@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

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Siemel Naran | last post by:
Hi. I'm writing a command shell that reads commands from standard input. At this point I have the command in a std::string. Now I want to execute this command in the shell. From the Borland...
6
by: Lauren Wilson | last post by:
Hi folks, In an A2K app, I have attempted to use the following command in some VBA code with IDENTICAL results with every single version of the following: Shell "outlook.exe", vbHide Shell...
1
by: VRWC | last post by:
Hello dear people, In an A2K app, I have attempted to use the following command in some VBA code with IDENTICAL results with every single version of the following: Shell "outlook.exe", vbHide...
8
by: zhiwei wang | last post by:
I remember that there is a function that could invoke shell command such as "rm" "cp", directly in .c file. But I could not recall its name, and I googled with nothing meaningful. I vaguely...
2
by: micahstrasser | last post by:
I have been trying for days to send a command to the command prompt through the shell() function in vb.net. For some reason it is not working. Here is the code: Private Sub Button1_Click(ByVal...
2
by: ¹é¿ø¼® | last post by:
Hello, everybody. I want to call any shell command from php script using shell_exec(). The problem is that the next line of the php script would not be run until a few minutes after running the...
4
by: Anastasios Hatzis | last post by:
I'm looking for a pattern where different client implementations can use the same commands of some fictive tool ("foo") by accessing some kind of API. Actually I have the need for such pattern for...
25
by: dennijr | last post by:
ok, shell always used to be easy for me, now its starting to get annoying cause i dont know wats wrong heres the simplist code possible: Private Sub IExplorer_Click() a = Shell("C:\Program...
3
by: Max Vit | last post by:
I have come across a strange issue whilst trying to use a shell command call from Access and have spent some time trying to figure this out but can't find the cause as yet. The issue is: I need...
7
by: Samuel A. Falvo II | last post by:
I have a shell script script.sh that launches a Java process in the background using the &-operator, like so: #!/bin/bash java ... arguments here ... & In my Python code, I want to invoke...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.