Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 10th, 2003, 04:38 PM
cmh cmh is offline
Registered User
 
Join Date: Dec 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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>"

 
Old December 29th, 2003, 08:11 PM
Authorized User
 
Join Date: Oct 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

any error??

« Wayang Mßeling »
÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷ ÷÷÷÷÷
ASP Newbie needs guidances here
 
Old December 30th, 2003, 11:45 AM
cmh cmh is offline
Registered User
 
Join Date: Dec 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

no error.
Quote:
quote:Originally posted by Wayang_Mbeling
 any error??

« Wayang Mßeling »
÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷ ÷÷÷÷÷
ASP Newbie needs guidances here
 
Old November 8th, 2004, 11:34 AM
Registered User
 
Join Date: Nov 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to hugobazan
Default

I'm having the same problem, I have not error, but I don't know where exactly I have to review the user rights to be sure that it's not the problem, can you let me know?





Similar Threads
Thread Thread Starter Forum Replies Last Post
ASPExec.execute cmh Classic ASP Components 1 May 2nd, 2006 09:55 PM
Execute ,Executeglobal is not working ?? vinod_yadav1919 Classic ASP Basics 0 January 31st, 2005 07:42 AM
Execute ,Executeglobal is not working ?? vinod_yadav1919 VBScript 0 January 29th, 2005 06:58 AM
conn.execute,command.execute or rs.open vinod_yadav1919 Crystal Reports 0 January 3rd, 2005 10:26 AM
ASPExec does not work!!! planeswalk Classic ASP Components 7 January 28th, 2004 07:33 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.