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: VBS Script Setting TransferOptions.FilePermissions = Null

It's Nothing.

But it's Nothing by default anyway.

VBS Script Setting TransferOptions.FilePermissions = Null

I need to set the FilePermissions via VBScript. I am getting permission denied from the server...

Set transferOptions = WScript.CreateObject("WinSCP.TransferOptions")
transferOptions.TransferMode = TransferMode_Binary
transferOptions.FilePermissions = null
transferOptions.PreserveTimestamp = False

I am getting an error Invalid Procedure Call or Argument FilePermissions on the line above. 80131500

Am I missing something or what is not correct? I also tried transferOptions.FilePermissions = vbnull