FilePermissiosn in VBScript
How can I set the FilePermissions in a VBScript ? I have tried:
Dim myPermissions
Set myPermissions = Wscript.CreateObject("WinSCP.FilePermissions")
myPermissions.FilePermissions.Text = "rwxrwxrwx"
also tried:
Set transferOptions = WScript.CreateObject("WinSCP.TransferOptions")
transferOptions.TransferMode = TransferMode_Binary
transferOptions.FilePermissions.Text = "rwxrwxrwx"
Both returns "missing object"
Dim myPermissions
Set myPermissions = Wscript.CreateObject("WinSCP.FilePermissions")
myPermissions.FilePermissions.Text = "rwxrwxrwx"
also tried:
Set transferOptions = WScript.CreateObject("WinSCP.TransferOptions")
transferOptions.TransferMode = TransferMode_Binary
transferOptions.FilePermissions.Text = "rwxrwxrwx"
Both returns "missing object"