Topic "VBS Script Setting TransferOptions.FilePermissions = Null"

Author Message
[View user's profile]

Joined: 2017-03-14
Posts: 25
Location: MyTown
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

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27083
Location: Prague, Czechia
It's Nothing.

But it's Nothing by default anyway.

You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License