Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.visual.misc > #143
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | Dee Earley <dee.earley@icode.co.uk> |
| Newsgroups | comp.lang.basic.visual.misc |
| Subject | Re: shell function and pdf in vb6 |
| Date | Mon, 09 May 2011 19:06:23 +0100 |
| Organization | Aioe.org NNTP Server |
| Lines | 29 |
| Message-ID | <iq9aes$1ks$1@speranza.aioe.org> (permalink) |
| References | <a67gs6d4vmb1bpnck3ne48gatehvvjqplt@4ax.com> |
| NNTP-Posting-Host | rjApkXnSOjrT83QpZ8fKqg.user.speranza.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.basic.visual.misc:143 |
Show key headers only | View raw
On 09/05/2011 18:02, scbs29 wrote:
> Hello all
> As part of a program which I am writing for my wife's craft pictures I
> have just found a need to display pdf files.
> I can do this ok (with foxit reader) using code of the form
> strInstructions = """c:\program files\foxit software\foxit
> reader\foxit reader.exe"""
> strInstructions = strInstructions& " "& """"& filename& """"
>
> so that for a file c:\a_folder\another_folder\filename
> the full call would be
> retval = shell("c:\program files\foxit software\foxit reader\foxit
> reader.exe" "c:\a_folder\another_folder\filename")
>
> Surely there is a more elegant way of doing this ?
> Can anyone advise ?
Use ShellExecute()
http://hashvb.earlsoft.co.uk/ShellExecute
--
Dee Earley (dee.earley@icode.co.uk)
i-Catcher Development Team
http://www.icode.co.uk/icatcher/
iCode Systems
(Replies direct to my email address will be ignored.
Please reply to the group.)
Back to comp.lang.basic.visual.misc | Previous | Next — Previous in thread | Next in thread | Find similar
shell function and pdf in vb6 scbs29 <scbs29@fred.talktalk.net> - 2011-05-09 18:02 +0100
Re: shell function and pdf in vb6 Dee Earley <dee.earley@icode.co.uk> - 2011-05-09 19:06 +0100
Re: shell function and pdf in vb6 scbs29 <scbs29@fred.talktalk.net> - 2011-05-09 20:06 +0100
csiph-web