In OS/2 WARP 4 you can use the new setup string MENUITEMSELECTED to force a refresh of a folder:
/* ------------------------------------------------------------------ */ /* REFFOLDER.CMD - force the refresh of a folder */ /* */ /* (only possible in WARP 4!!! */ /* */ call rxFuncAdd 'SysSetObjectData', 'REXXUTIL', 'SysSetObjectData' call rxFuncAdd 'SysOS2Ver', 'REXXUTIL', 'SysOS2Ver' if SysOS2Ver() < 2.40 then do say 'Sorry, this program needs WARP 4 or above!' exit 255 end /* if SysOS2Ver() < 2.40 then */ folder = "C:\Desktop\Programs" call SysSetObjectData folder, "MENUITEMSELECTED=503;" exit 0