Posted: 2006-02-04 00:09
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?
winscp376 /console /script=content-update.tmp
winscp380 /console /script=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
# Change remote directory
# 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
# Disconnect and Exit WinSCP
Location: Prague, Czechia
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.
Posted: 2006-02-08 20:12
Thanks for the info.
I guess I will wait until the new release when the open command issue will hopefully be resolved.
You can post new topics in this forum
And it's free!