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

nickguido wrote:

The following line appears within a dos batch file run on a windows 2000 server. We are using WinSCP 3.7.4 build 271

/log is supported since 3.8.2 only.
nickguido

The following line appears within a dos batch file run on a windows 2000 server. We are using WinSCP 3.7.4 build 271
------------------------------------------------------
"c:\program files\winscp3\winscp3.exe" /console /script=D:\WEBOUT\NSS_Scripts\winscp3_to_NSS.txt /log=D:\LogFiles\nss\to_NSS.txt
------------------------------------------------------

(script file) (winscp3_to_NSS.txt)

# Automatically answer all prompts negatively not to stall
# the script on errors
option batch on
option log=D:\LogFiles\nss\to_NSS.txt
# Disable overwrite confirmations that conflict with the previous
option confirm off

# Connect using a password
# open user:password@example.com
# Connect
# Change remote directory
# cd /home/user

lcd d:/temp

# Force binary mode transfer

option transfer binary

# Download file to the local directory d:\
# get examplefile.txt d:\
# Disconnect
#close
# Connect as a different user

open ops13400@nssfdtstv.wan.newspapersupport.com

# Change the remote directory
cd /app/iface/NSFSCNV/13400/AP/inbound


# Upload the file to current working directory

put SIAPIo57
put SIAPIo58
put SIAP01
put SIAP02
put NSAP01
put NSAP02

#put d:\examplefile.txt
dir

# Disconnect
close

# Exit WinSCP

exit

------------------------------------------------------------------
martin

/log should work. What version of WinSCP are you using? Can you post an example of command you use to run WinSCP?
nickguido

I found the logging tab. It's not what I need. I am trying to generate a log file in scripting mode. I tried to use the /log command but it seems to be ignored. I tried to add la log command to the script, but that doesn't work either.
when the script runs,a window appears on the screen. Can I capture the contents of the window and can I pause the sereen to view the results during testing? Is there another way capture the events?
martin

Re: event logging

So what do you have on the Logging tab?
nickguido

event logging

when i go to the logging tab I am not presented with a choice for logging, As such, I can't enable logging. did i do something wrong during install? What do you suggest?