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

martin

Re: Wait till PUT is completed

The /log switch must be outside of the script commands:

\\path\SFTP\WinSCP.com /log=C:\log.log "/command" "open sftp://user:pass@ftpedi-group.com/home/VER/DATA/" "put \\ver.be\workspace\Prog\Firmware\TransportShipmentEDI\\B98_VERBAU_____WMS-VUO____9884.DFD"
LaurentzT

Re: Wait till PUT is completed

Hi,

I tried it with the latest version but it is still the same.
Can you help me with the command because I can't get it to work with the logging if I shell execute it:

\\path\SFTP\WinSCP.com "/command" "open sftp://user:pass@ftpedi-group.com/home/VER/DATA/ /log=C:\log.log" "put \\ver.be\workspace\Prog\Firmware\TransportShipmentEDI\\B98_VERBAU_____WMS-VUO____9884.DFD"
martin

Re: Wait till PUT is completed

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
LaurentzT

Wait till PUT is completed

Hi,

I use this code to upload a document, starting from a cmd.exe:

\\...SFTP\WinSCP.com "/command" "open sftp://USER:PASS@ftpedi.group.com/home/COMPANY/DATA/IN/" "put \\...\B98_VERBAU_____WMS-VIO____1419.DFD"

When I start it like this, it works and the file gets uploaden. But when I call a exit after the PUT, the program does't wait till the file is uploaded and exit the cmd to early...

Any tips or tricks for it?