Sign in to follow this  
Followers 0
aleph01

ShellExecute issues

6 posts in this topic

I've successfully used ShellExecute in the past, which just perplexes me all the more.  The following code gives me an error: This file does not have a program associated with it for performing this action.

ShellExecute ("C:\Program Files (x86)\Microsoft Office\Office14\POWERPNT.EXE", "C:\Users\keitht\Desktop\New Microsoft PowerPoint Presentation.ppsx", "", "Show", @SW_MAXIMIZE)

It seems that the action in the error is the verb Show in the code, and it's true that powerpnt.exe has no "Show" verb, the slideshow (.ppsx) does.  The slideshow is currently opening in Edit mode.  How do I get it to open as a slideshow?

 

Thanks,

 

_aleph_

 


Meds.  They're not just for breakfast anymore. :'(

Share this post


Link to post
Share on other sites



JohnOne,

Thanks for the suggestions, but I'm getting the same error.  It suggests I set up a file association.  .ppsx is currently set up to open with PowerPoint.  I thought you had to give the executable as your first parameter.

_aleph_


Meds.  They're not just for breakfast anymore. :'(

Share this post


Link to post
Share on other sites

That did it!  Thanks, JohnOne!

Working script:

ShellExecute ("C:\Users\keitht\Desktop\New Microsoft PowerPoint Presentation.ppsx", "", "", "", @SW_MAXIMIZE)

Thanks again

_aleph_


Meds.  They're not just for breakfast anymore. :'(

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0