473,652 Members | 3,123 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

AspExec - Run batch file from ASP page

hi everyone,
I searched in faq's but couldn't find and solution...
so here I post the popular question..

Env: Win2003 server / IIS6.0
Simple ASP page that runs a batch file.

When I run the asp page, I see some command line window pop-up on my screen
for a second [may be the "cmd" is triggered without any parameters]. But the
batch file is not executed. I gave 'IUSR_*' account 'full control'.
-----------------------CODE----------------------------
Set objExecutor = Server.CreateOb ject("ASPExec.E xecute")
objExecutor.App lication = "cmd.exe"
objExecutor.Par ameters = "/c c:\test.bat"
objExecutor.Sho wWindow = True
strResult = objExecutor.Exe cuteWinApp
response.write "<p>" & strResult & "</p>"
-----------------------CODE----------------------------
On running the ASP page I see output as "Ok", with no errors. But the batch
file is not executed.

Interestingly, when I tried "WScript.Shell" , same exact thing happennd
[command pop-up for a second, with no executing of batch file.]

I have this exact setup running on a Win2000/IIS 5 running for over a
year.....

Any suggestions are appreciated...
thanks,
May 12 '06 #1
1 5088
Ben
It seams, many people have this problem with IIS6 / Windows 2003 - but nobody has a solution?
May 31 '06 #2

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

Similar topics

0
1511
by: Dave Karmens | last post by:
which is better to use? dim wsh set wsh = Server.CreateObject("WScript.Shell") wsh.run "c:\build.exe", 1, True set wsh = nothing --or--
14
3546
by: Mark C. | last post by:
I'm trying to call a batch file that I've built using the FileSystemObject and CreateObject("Wscript.Shell"), oShell.Run... in an asp script. Naturally, I can get the script to work from a command line but not from a browser. The page does not throw an error but the oShell.Run... portion of the script doesn't run. Any help would be appreciated. Thanks.
9
8839
by: Doug at SAU | last post by:
I need to run a batch file on a remote machine from an ASP page. I dummied up a test ASP page as follows: <% Set WshShell = Server.CreateObject("Wscript.Shell") wshshell.run "c:\inetpub\wwwroot\logasp\getdr.bat > c:\tstlog.txt" %> the batch file is as follows:
6
11215
by: Charles Neitzel | last post by:
I'm trying to write a windows application in C# (Using Microsoft Visual C# 2005 Express) that is nothing more than a simple UI with buttons on it. The buttons do various things like running programs and executing registry entries. The majority of my buttons work however, I have come upon a problem. I need a few of the buttons to run DOS batch files, the batch files in turn run program installers (specifically windows update runtime .exe...
3
2324
by: KRK | last post by:
I am having one batch file and using this I can start my Server. It will execute all exes while starting. Now my question is how to debug my exe using this batch file?? Is it possible to execute this batch file from my prject debug session....
3
4458
by: emman_54 | last post by:
Hi every one, I am trying to run a batch file using my asp.net application. I am using the Process class to run the batch file. When I run my web application, In the task manager, i could see cmd.exe with ASPNET as a user. But nothing happens. It can't execute the batch file. This is the code i am using to run the batch file:
0
2579
by: northof40 | last post by:
Hi - I have a requirement to run a .EXE from within a ASP page. From reading the archives it seems like ASPExec.dll from serverobjects.com has been recommended in the past but this is not longer available - can anyone suggest an alternative ? Thanks Richard.
7
4640
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I am doing a migration for our web program from IIS 5.0 to IIS 6.0 One thing I was baffled is aspexec component. I didn't change the code, but it seems the following code doesn't work anymore in IIS 6.0 in windows 2003 set Executor = Server.CreateObject("ASPExec.Execute") Executor.Application = sDosCmd
14
12795
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, In my windows applicationm, i need to excute a batch file. this batch file throws some text and questions to the screen, i need to catch the standard Output, check if it's a question, in case it's a question, i want to popup a messageBox or something, and bring back to the batch file the result (Yes\No question). I know how to excute the batch file and get all the Standard output at the end, but i don't know who can i read it line by...
0
8279
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8703
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7302
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6160
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5619
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4145
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2703
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1914
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1591
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.