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
Thanks!
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
Thanks!