ExecuteCommand fails on AS400/IBM i-series after GetFiles

Advertisement

vt
Joined:
Posts:
2
Location:
Italy

ExecuteCommand fails on AS400/IBM i-series after GetFiles

I'm using WinSCP 6.5.5 .NET assembly in PowerShell script.
In my script I did these tests:
  1. launch just one or more commands using the ExecuteCommand: 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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
42,556
Location:
Prague, Czechia

Re: ExecuteCommand fails on AS400/IBM i-series after GetFiles

Did you try to set FtpWorkFromCwd to on? Can you post log file for that?

Reply with quote

vt
Joined:
Posts:
2
Location:
Italy

Hi Martin, with FtpWorkFromCwd=on both the commands are working, but not the file transfer.
Instead with the parameter FtpWorkFromCwd=auto the file transfer works but not the second command.
I'll send you both logs.
Best regards

Reply with quote

Advertisement

You can post new topics in this forum