Jump to content

What is wrong in this simple "OpenFile" instruction?


Akshay07
 Share

Recommended Posts

  • Developers

It will open fine to be able to read the records with FileRead(), but you probably want to run the application that normally opens the file.

Look at ShellExecute()

Jos

Edited by Jos

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

It will open fine to be able to read the records with FileRead(), but you probably want to run the application that normally opens the file.

Look at ShellExecute()

Jos

Thanks, I will give it a try.

Edit: it works!

Is there also a way to force a .txt file to be opened with notepad in case the user has another text editor?

Edited by Akshay07
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...