Hi all. I am attempting to use an Execute Process Task to have the windows ftp client send a file to another server.
Here's what I've got so far:
Under Execute Process Task Properties
[ul]
[li]I set win32 process = [ignore]C:\WINNT\SYSTEM32\FTP.EXE (also works if you just enter ftp)[/ignore]
[/li]
[li]In the parameters line I entered:
[ignore]-s:"\\Server\FileTransfers\FTP_Commands.txt"[/ignore]
[/li]
[/ul]
The -s switch specifies a text file that contains all of the ftp commands.
This all works fine, but I hit a road block when I try to adding some logging functionality.
What I want to enter in the parameters line is:
[ignore] -s:"\\Server\FileTransfers\FTP_Commands.txt" > "\\Server\ftp.log"[/ignore]
Adding [ignore]> "\\Server\ftp.log"[/ignore] should write the output of the command line to a file. The command works fine when I run it manually from a command line, but gives me an error when I try to run it from within the Execute Process Task.
Any help or suggestions you can offer would be greatly appreciated!
Here's what I've got so far:
Under Execute Process Task Properties
[ul]
[li]I set win32 process = [ignore]C:\WINNT\SYSTEM32\FTP.EXE (also works if you just enter ftp)[/ignore]
[/li]
[li]In the parameters line I entered:
[ignore]-s:"\\Server\FileTransfers\FTP_Commands.txt"[/ignore]
[/li]
[/ul]
The -s switch specifies a text file that contains all of the ftp commands.
This all works fine, but I hit a road block when I try to adding some logging functionality.
What I want to enter in the parameters line is:
[ignore] -s:"\\Server\FileTransfers\FTP_Commands.txt" > "\\Server\ftp.log"[/ignore]
Adding [ignore]> "\\Server\ftp.log"[/ignore] should write the output of the command line to a file. The command works fine when I run it manually from a command line, but gives me an error when I try to run it from within the Execute Process Task.
Any help or suggestions you can offer would be greatly appreciated!