| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Rexx script help |
Herbert Rosenau wrote:
>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.
>
>
>
>
If you haven't seen or used Chris' WPSWizard then in short what it does
is add a button bar to all folders. He has buttons that will open a
command line into the same directory as the folder (e.g. I have a folder
on my desktop d:\deskstuff, if I use the button it opens a command line
to d:\deskstuff). I prefer 4os2 in this case solely because I have
gotten so used to the tab complete. Hence I am trying to modify his
script.
This is the only line I am changing.
ADDRESS CMD 'start "Command line: 'WPSWizCallFunc("cwQueryRealName",
ARG(2), 0)'" /F cls'
I am not familar with the ADDRESS CMD but found that it seemed to work
more or less with the way I changed it but then I get minimized. If I
launch it with start it launches a cmd.exe that then launches a 4os2 and
they do not have focus. I have seen similar issues in REXX where focus
was not give but I was able to see what it was doing and fix those. In
this case the script only works when it is used as a button and I can't
follow what it is doing. I was hoping I was just missing somthing I
didn't know about ADDRESS CMD that would fix this but apparently not.
Thanks,
Andy
------------------------ 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™.