Normal Topic Powerpoint files (Read 1114 times)
NHUser
Full Member
***
Offline



Posts: 320
Location: Amherst, NH
Joined: Aug 2nd, 2010
Powerpoint files
Jun 27th, 2013 at 7:46pm
Print Post Print Post  
In my programming, I had a statement calling for a powerpoint program as a visual aid to our molding operation.  With the latest version of powerpoint, there are now files that have the ".pps" extention and the ".ppsx" extension.  My programming has the .pps extension as part of the @ASynchShell statement.

Is there an easy way to call powerpoint files with any extension?  I thought of putting two statements back-to-back, but i thought I'd get an error message on the first one.

Any ideas?
  
Back to top
 
IP Logged
 
Rick_R
Full Member
***
Offline



Posts: 243
Joined: Jan 29th, 2010
Re: Powerpoint files
Reply #1 - Jun 27th, 2013 at 10:26pm
Print Post Print Post  
You can check for the existence of the first one and if it exists call that, otherwise call the other one.

I'd say generate the name using the .pps extension. If that doesn't exist, just add an x.
  
Back to top
 
IP Logged
 
NHUser
Full Member
***
Offline



Posts: 320
Location: Amherst, NH
Joined: Aug 2nd, 2010
Re: Powerpoint files
Reply #2 - Jun 28th, 2013 at 8:17pm
Print Post Print Post  
I used a couple of If FileExists() statements and it worked great.  If the file doesn't exist, the command to open the fine is not invoked and the error message doesn't occur.

Thanks for your help!
  
Back to top
 
IP Logged