473,395 Members | 1,948 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,395 software developers and data experts.

ExecuteWinApp not able to run the command

Hi all

I want to run a bat file in the server through an ASP page.
The following is the code in my ASP page.

<html>
<body>
<html>
<body>
<form runat="server">
<%

Set Executor = Server.CreateObject("ASPExec.Execute")
Executor.Application = "cmd.exe"
Executor.Parameters = "/c C:\Inetpub\wwwroot\RunBatchfile.exe"
Executor.ShowWindow = True
Response.Write "Attempting to execute " & Executor.Application &
"<br>"
strResult = Executor.ExecuteWinApp
Response.Write "The result of this call was: " & strResult
%>
</form>
</body>
</html>

output:

Attempting to execute cmd.exe
The result of this call was: cmd.exe /c
C:\Inetpub\wwwroot\RunBatchfile.exe

But when I put the result in run and execute it works fine.

I think that ExecuteWinApp is not able to run the command.

I am running this on windows server 2003.

does anybody have an idea on this ?

Any help would be appreciated

Oct 11 '06 #1
0 1123

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

Similar topics

0
pbmods
by: pbmods | last post by:
FIXING NETINFO ERRORS ON THE COMMAND LINE LEVEL: ADVANCED PREREQS: TERMINAL / COMMAND LINE, USERS AND GROUPS Intro Today, while performing routine maintenance, I noticed that I was no...
1
by: Dave Programmer | last post by:
In a Makefile, I have something like the following: # makefile start X = "default_x" Y = "default_y" targA: dosomething -x $(X) -y $(Y)
51
by: Ojas | last post by:
Hi!, I just out of curiosity want to know how top detect the client side application under which the script is getting run. I mean to ask the how to know whether the script is running under...
5
by: waltbrad | last post by:
Hi folks. I'm learning Python from the Mark Lutz Book, Programming Python 3rd edition. He seems to be able to invoke the Python interpreter from any command line prompt. C:\temp>python ...
6
by: tvaughan77 | last post by:
Hi, I have some code that I want to use to run a command line utility and I want to be able to run it from an aspx page running under IIS. The command line utility is a local utility running on...
5
by: neosam | last post by:
Hey all, I am not able to integrate these 2 actions in one command. What i am doing is... A button which sends a report with only specific data to a particular person (via outlook). I am able to...
1
by: dougmeece | last post by:
Good Morning Experts, I was trying to find a way to automatically open a report in MS Word when I click on a command button. I was not able to find a way to do that. I was able to open the...
6
by: brianrpsgt1 | last post by:
I am new to scripting. I am trying to read the settings from a serial device using Python. I have been able to successfully connect to the device and change baud rate settings, ect... with...
0
by: geet114 | last post by:
Hi, With the help of google and bytes I am able to launch(invoke) the commands(like dos commands), But the problem does end there, now I need launch(invoke) the command something like telnet in...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.