Ace08 Posted October 7, 2010 Share Posted October 7, 2010 (edited) hi guys one quick question how do i get the current month? i've done a search on this and found @mon but this one gives only the numerical expression of the month(10 = october) but what i want is to get the month name itself.....oh and another thing can i open 2 textfiles at a time? coz i was thinking of doing a reading on the 1st file get a certain text or value there then rewrite it in the second textfile...and thanks for the help guys Edited October 7, 2010 by Ace08 Work smarter not harder.My First Posted Script: DataBase Link to comment Share on other sites More sharing options...
trung0407 Posted October 7, 2010 Share Posted October 7, 2010 1. Do a function switch @mon case 0 return "January" case 1 return... endSwitch 2.yes FileRead ;to open and read file FileWrite ;to write to a file No need for call FileOpen unless you want additional options Link to comment Share on other sites More sharing options...
somdcomputerguy Posted October 7, 2010 Share Posted October 7, 2010 _DateToMonthAnd I'm pretty sure more than one file can be opened at the same time. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Ace08 Posted October 7, 2010 Author Share Posted October 7, 2010 Thanks trung0407 and somdcomputerguy for the reply.... i realy appreciate it thanks again Work smarter not harder.My First Posted Script: DataBase Link to comment Share on other sites More sharing options...
somdcomputerguy Posted October 7, 2010 Share Posted October 7, 2010 You bet. Good luck. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Ace08 Posted October 7, 2010 Author Share Posted October 7, 2010 oh another thing somdcomputerguy, im just wondering when i finish my script i would like to compile it to exe so that i can place it to my other workstations, if i do that the function _DateToMonth needs to have #include <Date.au3> will this be affected? i mean will the script give an error if i place the compiled script in a workstation that has no autoit installed? Work smarter not harder.My First Posted Script: DataBase Link to comment Share on other sites More sharing options...
somdcomputerguy Posted October 7, 2010 Share Posted October 7, 2010 Nope. It'll work fine. When it's compiled, it's all included. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Ace08 Posted October 7, 2010 Author Share Posted October 7, 2010 thank you so much somdcomputerguy Work smarter not harder.My First Posted Script: DataBase Link to comment Share on other sites More sharing options...
somdcomputerguy Posted October 7, 2010 Share Posted October 7, 2010 Ya. You bet. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. 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