Wrox Programmer Forums
Classic ASP Professional For advanced coder questions in ASP 3. 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 Professional 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 May 9th, 2006, 03:42 AM
Registered User
Join Date: Apr 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Script execution...

 first here is the code I have >
...I didn't include the variables declaring and initialization here..

Set objScript = Server.CreateObject("WSCRIPT.SHELL")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.CreateTextFile(Server.MapPath("test.ftp"))

objTextFile.WriteLine "open " & ftp_address
objTextFile.WriteLine ftp_user
objTextFile.WriteLine ftp_pass
objTextFile.WriteLine "lcd " & Server.MapPath(".\downloaded")
objTextFile.WriteLine "cd " & ftp_location
objTextFile.WriteLine "binary"
objTextFile.WriteLine "get " & ftp_file
objTextFile.WriteLine "bye"

Set objTextFile = Nothing

strCMD = "ftp -s:"&Server.MapPath("\test.ftp")

Call objScript.run(strCMD)

Set objFSO = Nothing
so the problem is when I call this script from the asp page it doesn't execute a download of the file, but when I do it with ftp -s: \MyPath\test.ftp command in the command line on the server it executes just fine, what could be the problem here ?

Similar Threads
Thread Thread Starter Forum Replies Last Post
optimise it or speed up execution time perl script crmpicco Perl 2 November 22nd, 2006 08:31 AM
script execution prob.. dzagore2 Classic ASP Basics 0 May 8th, 2006 04:18 AM
Execution B.V.Madhav Crystal Reports 0 May 9th, 2005 04:50 AM
script execution time madhukp Classic ASP Basics 2 February 2nd, 2005 04:51 AM
Call and run CGI script from a PHP script ... how? dbruins BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 June 10th, 2003 03:09 PM

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