Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

vt

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
martin

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?
vt

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