rc = SysSetObjectData(name, setup)
with:
name being the object you wish to change (referenced either by a
full path specification or an object ID, such as <WP_DESKTOP>);
setup being one of the WPS setup strings, which always
have a keyword=data syntax. You can combine several settings
by separating them with semicola (;).
Example:
if SysSetObjectData(directory(),"NOMOVE=YES;DEFAULTVIEW=ICON") then
Say "Settings changed!"
This will change the folder settings for the current directory, which is useful for scripts called by XFolder, which have the intended directory already changed to.
See the &os2; REXX Reference for details.