[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Using DTS execute process task to run ftp.exe, how can I get the ftp log to record in a file?

Posted on 2006-03-28
Medium Priority
Last Modified: 2007-12-19
I have some applications that use ftp to retrieve data in an SQL job.  Everything works except I can't figure out how to get ftp to log to a text file.  It can be done manually, but not when executed from an execute process task in the DTS package.  I've done this on an AS/400 many times.  I know it can be done, just don't know how.

I prepare a txt file from a vb script preceeding the execute process task.  The execute process task win32 process is: ftp.exe,  the parameters are: -s:c:\ftpCommands.txt

Where do I put the >c:\ftplog.txt redirect command to capture the log?
Question by:JayNichols
LVL 75

Accepted Solution

Anthony Perkins earned 500 total points
ID: 16310862
Instead of executing ftp.exe, consider executing cmd.exe and placing the following in the parameters:
/c "ftp.exe -s:c:\ftpCommands.txt > c:\ftplog.txt"

Author Comment

ID: 16311849
Thanks for the quick response.  Worked great.  It immediately showed me my problem (a file name with a space in the middle).

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
This shares a stored procedure to retrieve permissions for a given user on the current database or across all databases on a server.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question