ASPExec.Execute not working
I am trying execute a DOS command from within an ASP page, but the ASPExec code does not seem to be working. I can execute the batch file manually and it works. It seems to bypass it when executing the program. I have the code listed below. I opened up the folder to everyone thinking it might be a permissions problem, but that did nothing. I have included the code below.
Set Upload = Server.CreateObject("Persits.Upload")
Count = Upload.Save("c:\cr_upload_area")
Set Executor = Server.CreateObject("ASPExec.Execute")
Executor.Application = "c:\deployment_scripts\move_cr_upload_area_to_wd_f p02.bat"
Executor.Parameters = ""
strResult = Executor.ExecuteDosApp
'This line below shows the actual move from the C drive to the mapped W drive
'Response.Write "<pre>" & strResult & "</pre>"
|