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

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?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Anthony PerkinsCommented:
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"

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JayNicholsAuthor Commented:
Thanks for the quick response.  Worked great.  It immediately showed me my problem (a file name with a space in the middle).
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.