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

tweeter68

Testing

Thank you. I'll give that a try.

Thomas
martin

Re: Broken Script

The log file HOUSTON_SCRIPT_nolisting.log is not for a command you have posted. In the logged session, there was no cd command used. But anyway, even if it were:

  1. Your cd syntax is wrong, it should be:
    "cd /storage/home/prc237"
    not:
    "cd " "/storage/home/prc237"

  2. You use an absolute path /D160519*.prc237 in the get command anyway, so the current working directory does not apply.

This should work:
winscp.com /command "open houston" "cd /storage/home/prc237" "lcd ""C:\Documents and Settings\administrator.EVOLVEFCU\My Documents\PULSE""" "get %1" bye
tweeter68

Broken Script

We have a provider that "updated" something on their site yesterday (05/19/2016). Prior to this update, we were able to use a script to download our files. After this update, we are no longer able to download the files with the script. We can download the files using the GUI without an issue. Prior to the problem, we were using Version 5.1.7 Build 3446. I did upgrade to Version 5.7.7 Build 6257.

This is the script we are running.
rem %1 is the file name of the file we want to download

winscp.com /command "open houston" "cd " "/storage/home/prc237" "lcd ""C:\Documents and Settings\administrator.EVOLVEFCU\My Documents\PULSE""" "get /%1" bye

I have attached the logs generated from the GUI (which does allow download) and the script (which does not allow download).

What I have seen within the logs is the way the folder with the files is listed. It looks like the correct folder is not listed.

From the GUI:
. 2016-05-20 13:00:32.584 Real path is '/storage/home/prc237'
. 2016-05-20 13:00:32.584 Trying to open directory "/storage/home/prc237".
> 2016-05-20 13:00:32.584 Type: SSH_FXP_LSTAT, Size: 29, Number: 263
< 2016-05-20 13:00:32.678 Type: SSH_FXP_ATTRS, Size: 37, Number: 263
. 2016-05-20 13:00:32.678 Getting current directory name.
. 2016-05-20 13:00:32.896 Listing directory "/storage/home/prc237".

From the script:
. 2016-05-20 13:02:40.021 Real path is '/storage/home/prc237'
. 2016-05-20 13:02:40.021 Trying to open directory "/storage/home/prc237".
> 2016-05-20 13:02:40.021 Type: SSH_FXP_LSTAT, Size: 29, Number: 263
< 2016-05-20 13:02:40.115 Type: SSH_FXP_ATTRS, Size: 37, Number: 263
. 2016-05-20 13:02:40.115 Getting current directory name.
. 2016-05-20 13:02:40.115 Startup conversation with host finished.
< 2016-05-20 13:02:40.115 Script: Active session: [1] HOUSTON
> 2016-05-20 13:02:40.115 Script: lcd "C:\Users\administrator\Documents\PULSE"
< 2016-05-20 13:02:40.115 Script: C:\Users\administrator\Documents\PULSE
> 2016-05-20 13:02:40.115 Script: get /D160519*.prc237
. 2016-05-20 13:02:40.115 Listing directory "/".

Thomas Teeter