REXX Procedure to Add a Program to a Folder

RetCode = SysCreateObject( "WPProgram",,
                           "Editor",,
                           "<MYFOLDER>",,
                           "PROGTYPE=PM;EXENAME=C:\OS2\E.EXE;")

if RetCode then
   say 'Program Object created'
else do
   say 'Error creating object'
   exit(1)
   end


[Back: REXX Procedure to Create a New Folder]
[Next: REXX Procedure to Register a New WPS Class]