TIP: Click on subject to list as thread! ANSI
echo: os2user-l
to: All
from: Herbert Rosenau
date: 2004-11-11 03:19:26
subject: Re: Rexx script help

Andy Willis schrieb:
> Herbert Rosenau wrote:
> 
> 
>>abwillis1 schrieb:
>> 
>>
>>
>>>I have modified a script from Chris Wohlgemuth's WPSWizard.  
>>>/* Open a 4OS2 command window  */
>>>call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
>>>call SysLoadFuncs
>>>
>>>dirName=WPSWizCallFunc("cwQueryRealName", ARG(2), 1)
>>>
>>>oldDir=DIRECTORY(WPSWizCallFunc("cwQueryRealName", ARG(2), 1))
>>>
>>>ADDRESS CMD 'd:\utils\4os2\4os2.exe'
>>>   
>>>
>>
>>'start "4os2 maximised" /max d:\utils\4os2\4os2.exe'
>> 
>>
>>
>>>call DIRECTORY oldDir
>>>exit
>>>   
>>>
>>
>>
>>
>> 
>>
> 
> I had tried that, unfortunately I can't tell that it is doing anything 
> and because of the way it is being used I don't know how I can debug 
> what is occurring.  It is either not launching anything at all or it 
> opens and then it closes it so quickly I have no tell tale. 
> If I put it in as:
> ADDRESS CMD 'start "4os2 maximised" /max d:\utils\4os2\4os2.exe'
> It isn't minimized but it also doesn't have focus so it opens behind 
> other windows. 
> Also if I type exit in this window then it closes but is replaced by a 
> cmd.exe (the one that presumably launched 4os2 with this method.  
> Closing with the button in the upper left closes it without the cmd.exe 
> window coming up.
> Andy
> 

You should read the help to 4os2 and its start command beside the REXX 
address command.

Anyway you can check the command you tries on commandline and see what 
it does.

REXX interprets each string as command. So
'4os2 command command parameters'
will excecute 4os2 in the same sessin as the REXX program where 4os2 
will execute the command given. Currently you starts a 4os2 session 
that has to do nothing.

But why does you start a 4os2 session? What should 4os2 do that 
cmd.exe or plain text can not do for you?
Give you a directory list? for that use SysFileTree
Use the right parameters for to get excactly the information you needs.

Your original code shows no requirement as to startup an 4os2 that has 
to do nothing except to be alive.


-- 
Tschau/Bye

Herbert Rosenau
EDV Beratung & Programmierung
Eichelsdorfer Str. 15
97461 Hofheim i.UFr.

Tel: 49-9523-502834
Fax: 49-9523-502823                     http://www.dv-rosenau.de/


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/E8folB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

 To visit your group on the web, go to:
    http://groups.yahoo.com/group/os2user/

 To unsubscribe from this group, send an email to:
    os2user-unsubscribe{at}yahoogroups.com

 Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




---
* Origin: Waldo's Place USA Internet Gateway (1:3634/1000)
SEEN-BY: 633/267 270 5030/786
@PATH: 3634/1000 12 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.