ExecuteCommand on IBM AS400
I have a remote command that works from the console but does not work from a script
Remote command
This is using FTP onto and IBM AS400
They at present use DOS
When this runs from using
I get the following error
AS I am not needing a directory, I can't see how to fix this.
Remote command
RCMD call qsnddtaq ('BCT213' 'CERES4DTDO' x'00128F' 'GO')They at present use DOS
ftp scripts and this command is run after a file transfer occurs.
When this runs from using
$rmtcommand = "RCMD call qsnddtaq ('BCT213' 'CERES4DTDO' x'00128F' 'GO')" $session.ExecuteCommand($rmtcommand)
Output :
ErrorOutput :
ExitCode : 0
Failures : {WinSCP.SessionRemoteException: Specified directory does not exist or cannot be accessed.
Working directory not changed.}
IsSuccess : False