Post a reply

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

as1981

Hello,

Sorry I had made a typing error in adding the log line.

For some reason it has started working. I will see if it works consistently.

Thanks for your help.

Andrew
as1981

Hello,

Thank you for your help.

When I add that parameter it tells me that the object doesn't support this property or method. Can you help?

Thanks

Andrew
martin

Re: Can't get attributes of file

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

To generate log file, set Session.SessionLogPath. 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.
as1981

Can't get attributes of file

All,

I'm using the following code:

Set transferResult = scpsession.GetFiles(strDetailList(6), strDetailList(7), strDetailList(8), scptransferOptions)

strDetailList(6) = /feedback/ack/

I get the error mentioned in the subject. If I understand the documentation correctly the forward slash at the end should make it treat the path as a folder and not try to get file attributes for it? I've also tried adding *.* on the end.

If I specify a filename it works so the path is, in theory. valid.

Thanks

Andrew