[[https://www.revelation.com/|Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community]]
==== Calling Windows App from Arev (AREV Specific) ====
=== At 28 JUL 2001 02:22:48AM Victor Engel wrote: ===
{{tag>"AREV Specific"}}
It seems Windows NT handles launching a Windows app from a DOS shell differently than Windows 95. I used to have a program that did this, and the way it functioned was to launch the application using pcperform. Control them immediately returned back to Arev.
Under NT, however, (or at least the way I have it set up) control in Arev does not resume until with Windows application is terminated.
Is there some setting I can make to get the previous functionality back? Alternatively, I seem to recall that someone here wrote a small executable whose sole job was to do exactly this. If it is still available, I'd like to try it out.
----
=== At 28 JUL 2001 05:52PM Warren wrote: ===
Have you tried calling a bat or cmd file that calls the Windows program instead of calling the program directly? I've had some success doing this in NT.
Example:
Instead of
PCPERFORM "WINWORD ":DOCname
PCPERFORM "WW ":DOCname
and WW is a BAT file:
]WW.BAT
]WinWord.exe %1
Provided of course Winword is in your search path.
----
=== At 30 JUL 2001 02:24AM Victor Engel wrote: ===
Thanks for the suggestion, but neither one works. A .bat file works the same as a direct call. A .cmd file does not even work, although it behaves like the .bat file does when called from a command prompt. Maybe there is some global setting I need to make somewhere.
----
=== At 31 JUL 2001 11:27AM c milner wrote: ===
You can use the Windows START command to call your Windows app.
The difference between Win9x and WinNT is that in Win9x, the START command is actually a program called START.EXE which is in your \windows\commands\ folder. In WinNT, START is part of the NT CMD program (like COMMAND.COM).
THe problem is that NT doesn't seem to let DOS apps use the START program in CMD. I have found this solution: Copy the START.EXE program from a Win9x PC into the same folder as your AREV app.
The use the PCPERFORM statement as follows:
PCPERFORM "START /W WINMINE.EXE"
this runs the windows app, and pauses the AREV app until the windows app is closed.
or
PCPERFORM "START WINMINE.EXE"
this runs the windows app, and permits the AREV app to continue running in the background. It immediately returns from the PCPERFORM statement and continues running your AREV app.
This appears to work in Win9x and WinNT (including 2000 and XP).
----
=== At 01 AUG 2001 08:40PM Victor Engel wrote: ===
Great! I just happen to have a Win95 machine on the network, so I did as you described, and it works. Now I just have to figure out how to automatically give Arev focus again. On Win95, Arev kept the focus, so you could browse through database records with pointers to documents loaded in an external app. Now, your scheme works, but I have to click on Arev before browsing.
At least it's a great improvement over what I had before.
----
=== At 01 AUG 2001 10:29PM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote: ===
This [i]is[/i] a cool technique, but if you're uncomfortable with copying start.exes around we've found that this has the same effect
[b]PcPerform "CMD.EXE /C START DosFileName"[/b]
[url=http://www.sprezzatura.com" ]The Sprezzatura Group[/url]
[i]World Leaders in all things RevSoft[/i]
[img]http://www.sprezzatura.com/zz.gif[/img]
----
=== At 02 AUG 2001 01:06AM Victor Engel wrote: ===
That did not work for me.
On a sidenote, I've been looking at the command line options for Irfan Viewer, a great little image viewer and editor (now it can also play MP3s, movies, etc.) Anyway, I just noticed that there is a command line option to close all instances of the viewer. The option is named /killmesoftly. What a descriptive name!
----
=== At 02 AUG 2001 05:20AM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote: ===
Sorry this was WinNt/2K only...
[url=http://www.sprezzatura.com" ]The Sprezzatura Group[/url]
[i]World Leaders in all things RevSoft[/i]
[img]http://www.sprezzatura.com/zz.gif[/img]
----
=== At 02 AUG 2001 03:04PM Victor Engel wrote: ===
It doesn't work on my machine which is NT 4.0 SP5. I'm using the start.exe from Win95 which seems to work fine.
----
=== At 03 AUG 2001 09:18AM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote: ===
I usually find I have to try various combinations of CMD START, START CMD /C to get the system to work.
Seems to fluctuate on ARev versions and Windows versions. What ever happened to the good old days when you could shell out to WordPerfect from the PC command of RevG?
[url=http://www.sprezzatura.com" ]The Sprezzatura Group[/url]
[i]World Leaders in all things RevSoft[/i]
[img]http://www.sprezzatura.com/zz.gif[/img]
----
=== At 03 AUG 2001 02:15PM Joe Doscher wrote: ===
What ever happened to the good old days when you could shell out to
WordPerfect from the PC command of RevG?
Answer= Bill Gates
----
=== At 07 AUG 2001 06:13PM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote: ===
Indeed - never really forgiven him for DOS 2.0....
[url=http://www.sprezzatura.com" ]The Sprezzatura Group[/url]
[i]World Leaders in all things RevSoft[/i]
[img]http://www.sprezzatura.com/zz.gif[/img]
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=97984293242D972D85256A9700230C00|View this thread on the forum...]]