Topic "FilePermissiosn in VBScript"

Author Message
bmcnish@...

Guest


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"
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
I do not do VBScript, but I guess this should do:

Code:
Set transferOptions = WScript.CreateObject("WinSCP.TransferOptions")
transferOptions.FilePermissions = Wscript.CreateObject("WinSCP.FilePermissions")
transferOptions.FilePermissions.Text = "rwxrwxrwx"
Advertisements

You can post new topics in this forum






Search Site

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License