VBS Script Setting TransferOptions.FilePermissions = Null

Advertisement

msdev7807
Joined:
Posts:
31
Location:
MyTown

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!

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum