Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Call Java program without showing Windows' CMD window
Message
From
21/01/2017 04:43:10
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
20/01/2017 16:13:12
General information
Forum:
Visual FoxPro
Category:
Web Services
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01646928
Message ID:
01646932
Views:
41
>Hello, I have a program that has to comunicate via a Java program that communicates with a web service by sending an XML file. I have to do this:
>
>
>
>RUN java DHLClient.java "c:\requests\XmlRequestFile.xls" "https://xmlpi-ea.mySupplier.com/XMLmySupplierServlet" "c:\responses\ResponseXML.xml"
>
>
>It shows me a windows with a black background, which, I suppose, is the cmd window, and after processing the file it closes automatically.
>
>What I want is NOT to show that window and, instead, show a message with something like a WAIT WINDOW command.
>
>Is there a way to call that command without showing a black CMD or Java window?

There's a good wrapper around the ShellExecute() call, written long ago by late Ed Rauh - search the downloads here for api_apprun. One of the parameters sets the run mode to invisible. It also has a choice of just running the app or to run it and wait until it completes - depending on what you need.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform