471,071 Members | 1,117 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

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'.
Set objExecutor = Server.CreateObject("ASPExec.Execute")
objExecutor.Application = "cmd.exe"
objExecutor.Parameters = "/c c:\test.bat"
objExecutor.ShowWindow = True
strResult = objExecutor.ExecuteWinApp
response.write "<p>" & strResult & "</p>"
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

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

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Dave Karmens | last post: by
9 posts views Thread by Doug at SAU | last post: by
6 posts views Thread by Charles Neitzel | last post: by
3 posts views Thread by emman_54 | last post: by
7 posts views Thread by =?Utf-8?B?YzY3NjIyOA==?= | last post: by
14 posts views Thread by =?Utf-8?B?R2lkaQ==?= | last post: by
reply views Thread by leo001 | last post: by

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.