ExecuteCommand fails on AS400/IBM i-series after GetFiles
I'm using WinSCP 6.5.5 .net assembly in Pwoershell script.
In my script I did these tests:
1. launch just one or more commands using the Execute Command: works fine
2. launch just one or more commands using ExecuteCommand and transfer a file with GetFiles: works fine
3. launch one or more commands using ExecuteCommand, transfer a file with GetFiles and relaunch a command with ExecuteCommand: this last command fails
4. if I remove GetFiles the last command works fine
Can anyone tell me what the problem is?
I'm attaching the following files:
- PowerShell script
- Execution result
- winscp.log
In my script I did these tests:
1. launch just one or more commands using the Execute Command: works fine
2. launch just one or more commands using ExecuteCommand and transfer a file with GetFiles: works fine
3. launch one or more commands using ExecuteCommand, transfer a file with GetFiles and relaunch a command with ExecuteCommand: this last command fails
4. if I remove GetFiles the last command works fine
Can anyone tell me what the problem is?
I'm attaching the following files:
- PowerShell script
- Execution result
- winscp.log