/************************************************/
/* PMXDesk                                     */
/* Makes a folder on the desktop for PMX       */
/************************************************/

address CMD

'@echo off'

call RXFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs'
call SysLoadFuncs

call setlocal

target_dir   = 'C:\PMX'     /**** <<<<<< edit this line to reflect where PMX is installed *****/

say 'Building Workplace Shell Objects...'

/****  PMX folder  ****/
classname = 'WPFolder'
title     = 'PMX'
location  = '<WP_DESKTOP>'
iconparm  = 'ICONFILE=' || target_dir || '\bin\xinit.ico;'
setup     = 'OBJECTID=<PMX_FOLDER>;' || iconparm

call SysCreateObject classname, title, location, setup, 'r'


/*** start x Windows Server ***/
classname = 'WPProgram'
title     = 'X Windows Server'
location  = '<PMX_FOLDER>'
iconparm  = 'ICONFILE=' || target_dir || '\bin\xinit.ico;'
setup     = 'EXENAME=' || target_dir || '\bin\xinit.cmd;' ||,
            'PROGTYPE=PM;'
call SysCreateObject classname, title, location, setup, 'r'


classname = 'WPProgram'
title     = 'X Windows Server Guide'
location  = '<PMX_FOLDER>'
setup     = 'EXENAME=view.exe;' ||,
            'PARAMETERS=' || target_dir || '\doc\pmx.inf;' ||,
            'PROGTYPE=PM;'
call SysCreateObject classname, title, location, setup, 'r'

      tclassname = 'WPProgram'
title     = 'Read Me PMX'
location  = '<PMX_FOLDER>'
setup     = 'EXENAME=ae.exe;' ||,
            'PARAMETERS=' || target_dir || '\doc\readme.pmx;' ||,
            'PROGTYPE=PM;'
call SysCreateObject classname, title, location, setup, 'r'


classname = 'WPProgram'
title     = 'Read Me'
location  = '<PMX_FOLDER>'
setup     = 'EXENAME=ae.exe;' ||,
            'PARAMETERS=' || target_dir || '\bin\readme;' ||,
            'PROGTYPE=PM;'
call SysCreateObject classname, title, location, setup, 'r'