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

WalterS

Thanks

Thanks for the info.
I guess I will wait until the new release when the open command issue will hopefully be resolved.
martin

Re: winscp380 failing in console mode

Run the script from already opened console (cmd.exe), so you can see the output. Generally 3.8 have problems with "open" command. It should work if the open command refers to a stored session or when it contains a password.
WalterS

winscp380 failing in console mode

I seem to be having problems running the 380 beta in console mode. If I run the two lines below at the command prompt, the one using winscp376 works fine. The one running winscp380 will flash up the winscp console window and pull it down before you can see anything. I have logged in with the GUI using both versions to make sure the host keys are set. Any idea what the problem could be?

Works:
winscp376 /console /script=content-update.tmp

Fails:
winscp380 /console /script=content-update.tmp


content-update.tmp:

# Automatically answer all prompts negatively not to stall the script on errors
option batch on
# Disable overwrite confirmations that conflict with option batch on
option confirm off
# Connect using a prompted password -or-
# Use folling syntax to include pass: open user:password@host
open webadmin@ecmapp15
# Change remote directory
cd "/home/webadmin/temp/"
# Create remote directory
mkdir "test up1"
# Change to created remote directory
cd "test up1"
# Force binary mode transfer
option transfer binary
# Upload files to current working directory
put "c:\temp\WinSCP\deploy\test up1\*.*"
# Change to parent of created remote directory
cd ..
# Disconnect and Exit WinSCP
close
exit