I'm getting the standard message, but can't figure out how to ignore permissions.
This is the VBScript code for setting the transfer options. The returned object is then used inUpload of file 'XXXXX' was successful, but error occurred while setting the permissions and/or timestamp.
If the problem persists, turn off setting permissions or preserving timestamp. Alternatively you can turn on 'Ignore permission errors' option. ("The server does not support the operation.")
PutFiles(). I don't remember why we are using
RawSettings; I think it's because a straight assignment like
TransferOptions_obj.Permissions = False
Function wscp_GetTransferOptions Dim TransferOptions_obj Set TransferOptions_obj = WScript.CreateObject( "WinSCP.TransferOptions" ) ' TransferOptions_obj.OverwriteMode = OverwriteMode_Overwrite ' TransferOptions_obj.PreserveTimestamp = False ' TransferOptions_obj.Permissions = False ' TransferOptions_obj.AddRawSettings "PreserveTimeDirs", 1 TransferOptions_obj.AddRawSettings "IgnorePermErrors", 1 TransferOptions_obj.AddRawSettings "PreserveTimestamp", 0 If Err.number <> 0 Then Transfer_Succeeded_b = False ErrorNumber = Err.number ErrorDescription = Err.Description ErrorSource = Err.Source Err.Clear Call udfs_LogError( "Problem with Transfer options", ErrorNumber, ErrorDescription, ErrorSource ) End If Set wscp_GetTransferOptions = TransferOptions_obj End Function