Example

This example disables file transfer commands, locks the profile with a password, and then saves the settings file (so that the lock remains in effect when Reflection is restarted. The only way to cancel the lock is with the UnlockProfile method.)

Sub DisableFileTransfer ()

 Session.SetCommandGroupProfile rcFileTransfer, rcDisabled

 Session.LockProfile True, "salami"

 Session.SaveSettings "Settings.r1w"

End Sub