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,

Thank you for your help.
as1981

Hello,

Thank you for your reply.

Unfortunately I'm still needing to use VB6.

If an exception is created and there is no error handling will it cause the program to stop or will it continue?

If it continues then that's actually OK for me. The program will retry the directory listing every few minutes anyway and if it doesn't get a listing one time but gets one the next it is OK. My main concern is that the program doesn't stop.

Thanks

Andrew
as1981

Session.ListDirectory error list

All,

If I want to capture any failures in a putfiles operation I use the following:

Set transferResult = scpsession.PutFiles(parameters)


Log "Failure count " & transferResult.failures.Count

I'm trying to capture the equivalent for session.listdirectory. The only

The only property of the RemoteDirectoryInfo class I can see is remotefileinfocollection.

Can I capture the amount of errors without using 'try/exception' functionality which isn't available in the language I'm using.

Thanks