Date: Mon, 3 Nov 1997 21:27:31 -0500
Reply-To: REXX Programming discussion list <REXXLIST@UGA.CC.UGA.EDU>
Sender: REXX Programming discussion list <REXXLIST@UGA.CC.UGA.EDU>
From: Undetermined origin c/o LISTSERV administrator
<owner-LISTSERV@UGA.CC.UGA.EDU>
Organization: Erol's Internet Services
Subject: Re: Help needed with OS/2 REXX
In <878499777.15263@dejanews.com>, on 11/02/97
at 01:52 PM, hunters@thunder.indstate.edu said:
-> Hi. I'm afraid I'm just beginning to learn REXX and can't figure this out
-> for the life of me... I want to write a script that will open a PM window
-> of the current directory. IE: If I'm in an OS/2 command window and I want
-> to see the current dir in a PM (icon view) window, I would run the .cmd
-> file and the Icon View of the current directory would appear on the
-> desktop. I really have no idea how to do this at all, so any/all help is
-> welcome! Thanks in advance!!
Steven,
In general it goes something like the following:
/* ** Untested REXX follows *** */
/* The following is the proper way to check for and load REXXUTIL!! */
/* And the following use of 'SysDropFuncs' is the only use without a */
/* direct COMMAND from the system operator. */
IF RxFuncQuery('SysDropFuncs')
THEN DO;
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs';
call SysLoadFuncs;
END;
objectid = directory() /* get current directory name fully quailfed */
cmdl = 'DEFAULT'
IF SysOpenObject(objectid, cmdl,1) = 1
THEN x= SysOpenObject(objectid,cmdl,1)
/* *** end of untested REXX *** */
The two calls to 'SysOpenObject' is for:
first Open the Object
second bring it to the Forground
Now if you want something other then a 'Folder' openned looking at the
current directory you will have to tell us which one and it's TYPE. As each
type of Object takes different commands.
--
-----------------------------------------------------------
] by Don E. Groves, Jr. [
] The one in the From is for the SPAMMERS out there! [
] my E-Mail address is 'jetnick' AT 'erols' DOT 'com' [
-----------------------------------------------------------
Tagged on: Mon, 3 Nov 1997 21:27:34 -0500
ooRexx Mr2Tag -> Mommy! The Ascended Masters are TEASING me again!