Calling a exe from a .p file

/* Macroscoop: www.macroscoop.nl
-------------------------------------
Program: External.p
Version: 5.00.312 - 1.0
written by R.J. van der Linden
mailto:R.van.der.Linden@...
-------------------------------------
You can put copies of this program in the Vantage\UD
directory. Do not forget that the first two letters of the
program name have to be 'UD'

*/
DEFINE VARIABLE ProgName AS CHARACTER NO-UNDO.
DEFINE VARIABLE ProgOption AS CHARACTER NO-UNDO.
DEFINE VARIABLE hInstanceNum AS INTEGER NO-UNDO.

/* if the program or document has spaces in its name
then you have to put double quotes around it
like the document example:

ASSIGN ProgName = 'winword.exe'
ProgOption = '"c:\eManufacturing TEST Document.doc"'.

ShellExec knows location of the vantage directory.
If you put your documents in a directory called Vantage\Docs
then program option could be:
ProgOption = '"Docs\eManufacturing TEST Document.doc"'.
*/

ASSIGN ProgName = 'msaccess.exe'
ProgOption = 'v:\vantage\ud\DocMang\JobAtt\access\jobatt.mde'.

RUN v:\vantage\lib\ShellExec.r (INPUT ProgName,
INPUT ProgOption,
OUTPUT hInstanceNum).

/* lib\ShellExec.p is a program of Epicor */


/*DOS SILENT v:\custom\FORM\SODoc\access\VIEW.mde*/




Above is the code that was shared with me.
Thanks
Jeremy Leonard
IT Manager
K-T Corporation


-----Original Message-----
From: Britt Moelling [mailto:bmoelling@...]
Sent: Tuesday, July 30, 2002 10:47 AM
To: vantage@yahoogroups.com
Subject: [Vantage] calling a exe from a .p file


Can anyone tell me how to call an external .exe file from a .p file in
procedure editor?

Thanks

--
Britt Moelling
M&M Manufacturing Co.




Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Can anyone tell me how to call an external .exe file from a .p file in
procedure editor?

Thanks

--
Britt Moelling
M&M Manufacturing Co.