$ftpparmfile =
$command = 'ftp -v -i -s:$ftpparmfile ’
Invoke-Expression “& $command”
These lines are used in a powershell script used in a scheduled daily tasks where files are transferred to a banking organisation.
Most of the time the FTP process is successful, but some of the time it is neither able to FTP any file nor gives any error.
What i think the problem is that the command timeout is early for ftp and need to increase the time for it it tries to transfer the file.
I have tried some timeout logic but none of them is working, Please suggest me some ways for to cope up with this!!