palba Posted November 17, 2008 Share Posted November 17, 2008 Hi All, I have this deal: I need to organize my work by date. A large amount of files are generated every day so I'd like to automate the daily job. -My idea is: Generate all the files into a specific folder At the end of the day, autoit creates a folder with the day and move all the daily generated files into the new folder. I have to ask: Can I create a folder giving a name? better could be the date, that autoit can handle simply. One more, which is the best way to select all the file in a folder? I need to move 600 files per day.... Any suggestion is very well appreciated! Thanks in advance Paul WWWWW AUTOIT!!!!!!!!!!!!!!!!! Link to comment Share on other sites More sharing options...
youknowwho4eva Posted November 17, 2008 Share Posted November 17, 2008 Help file: Dircreate @mday @mon @year filefindfirstfile filefindnextfile Giggity Link to comment Share on other sites More sharing options...
palba Posted November 18, 2008 Author Share Posted November 18, 2008 Help file:Dircreate@mday@mon@yearfilefindfirstfilefilefindnextfileThanks!But which is the correct use of @MDAY.I'm trying this:Dircreate ("c:\Documents\ (@MDAY/@MON")but it doesn't work as I expect.I'd like just to understand how to use date of the day to name or rename e folder.Many thanks in advance! Best regards!Paul Link to comment Share on other sites More sharing options...
ajag Posted November 18, 2008 Share Posted November 18, 2008 Thanks!But which is the correct use of @MDAY.I'm trying this:Dircreate ("c:\Documents\ (@MDAY/@MON")but it doesn't work as I expect.I'd like just to understand how to use date of the day to name or rename e folder.Many thanks in advance! Best regards!Paul$Filename = "c:\Documents\ (" & @MDAY & " - " & @MON & ")"Dircreate ($Filename)On Windows you can't take a slash "/" file or dir names. Rule #1: Always do a backup Rule #2: Always do a backup (backup of rule #1) Link to comment Share on other sites More sharing options...
palba Posted November 18, 2008 Author Share Posted November 18, 2008 $Filename = "c:\Documents\ (" & @MDAY & " - " & @MON & ")"Dircreate ($Filename)On Windows you can't take a slash "/" file or dir names.& @MDAY & ????I guess why in the help file many commands doesn't have the correct usage sintax.Where is a very good guide to find the correct commands usage?Thanks again for your help!Paul Link to comment Share on other sites More sharing options...
ajag Posted November 18, 2008 Share Posted November 18, 2008 (edited) & @MDAY & ????I guess why in the help file many commands doesn't have the correct usage sintax.Where is a very good guide to find the correct commands usage?Thanks again for your help!Paul& is to concatenate strings (it has nothing to do with the @... macros).So "c:\Documents\ (" & @MDAY & " - " & @MON & ")" concatenates the strings "c:\Documents\ (" @MDAY " - " @MON ")"Where the macros @MDAY and @MON result in the strings "18" and "11".So "Hello" & "-" & "world" results in "Hello-world"A-Jay Edited November 18, 2008 by ajag Rule #1: Always do a backup Rule #2: Always do a backup (backup of rule #1) 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