468,774 Members | 2,629 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,774 developers. It's quick & easy.

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.CreateObject("ASPExec.Execute")
objExecutor.Application = "cmd.exe"
objExecutor.Parameters = "/c c:\test.bat"
objExecutor.ShowWindow = True
strResult = objExecutor.ExecuteWinApp
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 4845
Ben
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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
2 posts views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.