dtk Posted August 6, 2008 Posted August 6, 2008 I can not find anywhere where you can save a file when closing it with a variable such as a date/time stamp so it does not replace the previous file. Sat i want to run a report with word and save it every day and use the date/time as the file name.
d4rk Posted August 6, 2008 Posted August 6, 2008 FileWrite() for txt file IniWrite() for ini file [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys
dtk Posted August 6, 2008 Author Posted August 6, 2008 Can't find anything in help which shows how to insert date as filename what is the syntax?
d4rk Posted August 6, 2008 Posted August 6, 2008 FileWrite(@MDAY & @YEAR & ".txt") [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys
dtk Posted August 6, 2008 Author Posted August 6, 2008 I'm not looking for a log file, i am looking to save the original file with a variable for the name such as a date/time stamp test08062008, or test.doc then test1.doc.
PsaltyDS Posted August 6, 2008 Posted August 6, 2008 (edited) I'm not looking for a log file, i am looking to save the original file with a variable for the name such as a date/time stamp test08062008, or test.doc then test1.doc. FileMove() $sFile = "C:\Temp\Test.odt" FileMove($sFile, "C:\Temp\Test_" & @YEAR & @MON & @MDAY & "_" & @HOUR & @MIN & @SEC & ".odt") You're not trying very hard... Edited August 6, 2008 by PsaltyDS Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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