Jump to content

ShellExecute opening program but not file


Recommended Posts

I'm having a very strange problem. If I run a command like:

ShellExecute("C:\spreadsheet.xls")
excel will open but not spreadsheet.xls. I can double click any excel file and it opens fine under any other circumstances, it's just shellexecute that has the problem. Any ideas why?

Link to comment
Share on other sites

  • Developers

Does the same happens when you type that from the command prompt?

If so my guess is that the file associate is missing the %1 on the command line.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...