🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.delphi.misc
Article #264

Re: How to run exe - Files out of my Application

#264
From: Align Software AB
Date: Mon, 19 Apr 1999 00:00
30 lines
2253 bytes
In article <371B68A9.BC8A3484@t-online.de>, Andreas.Evers@t-online.de says...
>Can anybody tell me, how to run exe-Files out of my Application?

You can say something like:

  var cmd:string;
  ...
  cmd:= 'C:\file.txt';
  ShellExecute(handle, 'open', pChar(cmd), '', 
    pChar(extractFilePath(cmd)), SW_SHOWNORMAL);

It also works if cmd is e.g. 'notepad.exe' (but use e.g. 'C:\' for 
the directory path), or even 'http://www.altavista.com'  
in which case the Internet-link should open in your default browser.

Regards/Stefan
Please find e-mail address here:
http://home.swipnet.se/align/shareware

@@@@@@@@@@@@@@@@@@@   U  R  L  S  E  N  T  R  Y   @@@@@@@@@@@@@@@@@@@

Get Instant Notification of Changes or Updates of Your Favourite Sites!
        ***  F R E E   D O W N L O A D   H E R E :  ***

            http://home.swipnet.se/align/shareware

URLSentry is a Windows shareware application that can be used
to monitor changes in any Web Pages of interest to you.
It runs silently in the system tray, instantly alerting you to
any Web Page Changes or Updates detected.
Technical Details
Message-ID: <QnKS2.12514$x43.23952@nntpserver.swip.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <371B68A9.BC8A3484@t-online.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f894d,cbedc9891d58aff1,start
X-Google-Attributes: gidf894d,public
X-Google-Thread: fd817,cbedc9891d58aff1,start
X-Google-Attributes: gidfd817,public
X-Google-Thread: 111659,cbedc9891d58aff1,start
X-Google-Attributes: gid111659,public
X-Google-Thread: 10baee,3929d1b867173d46
X-Google-Attributes: gid10baee,public
X-Google-Thread: f973d,cbedc9891d58aff1,start
X-Google-Attributes: gidf973d,public
From: FindEMailAddress@OurWebPagePlease.com (Align Software AB)
Subject: Re: How to run exe - Files out of my Application
Date: 1999/04/19
Message-ID: <QnKS2.12514$x43.23952@nntpserver.swip.net>
X-Deja-AN: 468390739
References: <371B68A9.BC8A3484@t-online.de>
Content-Type: Text/Plain; charset=US-ASCII
X-Complaints-To: news-abuse@swip.net
X-Trace: nntpserver.swip.net 924545648 130.244.214.105 (Mon, 19 Apr 1999 20:14:08 MET DST)
Organization: Align Software AB
MIME-Version: 1.0
NNTP-Posting-Date: Mon, 19 Apr 1999 20:14:08 MET DST
Newsgroups: comp.lang.pascal.delphi.misc,alt.lang.delphi,alt.comp.lang.borland-delphi,borland.public.delphi,comp.lang.pascal.borland