Currently we use the Tectia file transfer software to FTP files. We have a PowerShell script that is used to execute sftpg3.exe with a batch file using the Tectia Profile. Since there is very little code in either the PowerShell script or the batch file we don't want to split up the logic.
So we were wondering if there is a way to use sftpg3.exe without a batch file and do everything in PowerShell. Are there sftpg3 commands that PowerShell will recognize or is there a way to specify the remote and local directories as arguments? (As an added bonus I would like to remove the need for RedirectStandardOutput and receive errors from Tectia directly).
PowerShell code is something like follows:
And the batch script is like:
asked Aug 29 '16 at 20:27