dbTalk Databases Forums  

execute

comp.databases.paradox comp.databases.paradox


Discuss execute in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
OzPaul
 
Posts: n/a

Default execute - 11-21-2006 , 01:07 AM






Hi, does anybody know why this does not work when trying to launch a
pps file? Perhaps someone can tell me the best way of showing a pps
display from paradox. Thanks Paul.

execute("C:\\Program
Files\\MSOffice\\OFFICE11\\Powerpnt.exe,C:\\Corel\ \PdoxApps\\Visual
Acuity\\animation1.pps").


Reply With Quote
  #2  
Old   
Anders Jonsson
 
Posts: n/a

Default Re: execute - 11-21-2006 , 02:56 AM






Quote:
execute("C:\\Program
Files\\MSOffice\\OFFICE11\\Powerpnt.exe,C:\\Corel\ \PdoxApps\\Visual
Acuity\\animation1.pps").
I think you should get rid of the comma after the Exe but not sure.

Anyway, much better to use ShellExecuteA - search the forums for the code.
It's genereic for opening all kinds of files with a registered extension.

To hardcode the path to the exe in this way could fail for many reasons.


Anders





Reply With Quote
  #3  
Old   
Hans Schoutsen
 
Posts: n/a

Default Re: execute - 11-21-2006 , 09:59 AM



I think this will work:

execute("C:\\Program
Files\\MSOffice\\OFFICE11\\Powerpnt.exe -C:\\Corel\\PdoxApps\\Visual
Acuity\\animation1.pps").

hans

"OzPaul" <pfweston (AT) yahoo (DOT) com> wrote

Quote:
Hi, does anybody know why this does not work when trying to launch a
pps file? Perhaps someone can tell me the best way of showing a pps
display from paradox. Thanks Paul.

execute("C:\\Program
Files\\MSOffice\\OFFICE11\\Powerpnt.exe,C:\\Corel\ \PdoxApps\\Visual
Acuity\\animation1.pps").




Reply With Quote
  #4  
Old   
Sundial Services
 
Posts: n/a

Default Re: execute - 11-21-2006 , 03:00 PM



Hans Schoutsen wrote:
Quote:
I think this will work:

execute("C:\\Program
Files\\MSOffice\\OFFICE11\\Powerpnt.exe -C:\\Corel\\PdoxApps\\Visual
Acuity\\animation1.pps").

hans

"OzPaul" <pfweston (AT) yahoo (DOT) com> wrote in message
news:1164092846.546344.87230 (AT) h48g2000cwc (DOT) googlegroups.com...
Hi, does anybody know why this does not work when trying to launch a
pps file? Perhaps someone can tell me the best way of showing a pps
display from paradox. Thanks Paul.

execute("C:\\Program
Files\\MSOffice\\OFFICE11\\Powerpnt.exe,C:\\Corel\ \PdoxApps\\Visual
Acuity\\animation1.pps").

Also note that the "PPS" file-extension must be properly registered, so that
an attempt to "execute" one automatically causes the correct application to
be launched . . .

----
ChimneySweep(R): Fast(!) table repair at a click of the mouse!
http://www.sundialservices.com


Reply With Quote
  #5  
Old   
Anders Jonsson
 
Posts: n/a

Default Re: execute - 11-21-2006 , 03:33 PM



Quote:
Also note that the "PPS" file-extension must be properly registered, so
that
an attempt to "execute" one automatically causes the correct application
to
be launched . . .
Not when you call it like it was here, first a reference to the exe-file,
then followed by a path to a file, then it shouldn't matter if the
file-extension is registered to the exe. At least is that how I think most
programs work.

Anyway, ShellExecuteA is a better way because then one don't have to worry
about which version of Powerpoint, where it is installed etc. If the user
doesn't have Powerpoint he might have installed the free pp-viewer from
Microsoft and then the path and exe file name will be different, etc, etc.

Anders








Reply With Quote
  #6  
Old   
OzPaul
 
Posts: n/a

Default Re: execute - 11-21-2006 , 09:13 PM



Ok, Thanks all. ShellExecuteA works nicely. Guess I was a bit
intimidated initially but I'm ecstatic now it works. Thanks Paul.



Anders Jonsson wrote:
Quote:
Also note that the "PPS" file-extension must be properly registered, so
that
an attempt to "execute" one automatically causes the correct application
to
be launched . . .

Not when you call it like it was here, first a reference to the exe-file,
then followed by a path to a file, then it shouldn't matter if the
file-extension is registered to the exe. At least is that how I think most
programs work.

Anyway, ShellExecuteA is a better way because then one don't have to worry
about which version of Powerpoint, where it is installed etc. If the user
doesn't have Powerpoint he might have installed the free pp-viewer from
Microsoft and then the path and exe file name will be different, etc, etc.

Anders


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.