Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: FilePermissiosn in VBScript

I do not do VBScript, but I guess this should do:

Set transferOptions = WScript.CreateObject("WinSCP.TransferOptions")

transferOptions.FilePermissions = Wscript.CreateObject("WinSCP.FilePermissions")
transferOptions.FilePermissions.Text = "rwxrwxrwx"
bmcnish@...

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"