Akshay07 Posted December 20, 2009 Share Posted December 20, 2009 Hi all, I looked at the help (that's how I found the instruction) but the text file will not open! FileOpen("Results.txt", 2) The script is located in the same folder than the txt file. I also tried (with the script in a different folder) FileOpen("C:\test\Results.txt", 2) But it is not working Link to comment Share on other sites More sharing options...
Developers Jos Posted December 20, 2009 Developers Share Posted December 20, 2009 (edited) 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 December 20, 2009 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 More sharing options...
Akshay07 Posted December 20, 2009 Author Share Posted December 20, 2009 (edited) 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()JosThanks, 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 December 20, 2009 by Akshay07 Link to comment Share on other sites More sharing options...
trancexx Posted December 20, 2009 Share Posted December 20, 2009 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()JosHow did you figure that out? That's brilliant. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
omikron48 Posted December 21, 2009 Share Posted December 21, 2009 Is there also a way to force a .txt file to be opened with notepad in case the user has another text editor? Run("notepad.exe textfile.txt") Link to comment Share on other sites More sharing options...
Akshay07 Posted December 21, 2009 Author Share Posted December 21, 2009 Thanks!!! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now