Post a reply

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)


Topic review


Re: Upload Validation with Access VBA

You can use the ls command and XML logging and parse the XML log.

More hackish approach would be to just redirect output (with the ls output) to a text file and parse that.

The most reliable approach is using the the WinSCP .NET assembly and its Session.ListDirectory method from VBA.
On the other hand, this requires registration of the assembly, what complicates distribution of the code (if that's required).

Upload Validation with Access VBA

Hi all,

So we have successfully uploading a file using MS Access VBA and WinSCP. The issue is that we want to be able to validate that the file processed correctly in the Unix server. There are two other folders on the server, one called errored and one called completed. When the file is processed, it will be moved to one of those folders depending on whether the server application successfully processed it or not. Is there a way through WinSCP scripting to be able to view the folder contents in Access using VBA? Or any other way of validation for that matter?

I'm a noob when it comes to this so any help is greatly appreciated.