Akshay07 Posted December 20, 2009 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
Developers Jos Posted December 20, 2009 Developers 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.
Akshay07 Posted December 20, 2009 Author 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
trancexx Posted December 20, 2009 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
omikron48 Posted December 21, 2009 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")
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