Jump to content

Can I Copy Files To A Folder With Autoit?


Recommended Posts

win10 pc here.

I have dozens of folders created by my camera download software which makes a folder for each different day.

Going back more than ten years.

I want to copy all those files out of those folders and put them into one single folder (for each years).

so I click on a folder,  click on the first file,  find the last last file, click on the last file,  click 'copy'  move to the windows explorer side bar and find the destination folder - always the same one for this year - and click 'paste'.

then repeat.

Will AutoIt automate this routine for me? 

 

Link to comment
Share on other sites

1 hour ago, abrogard said:

Will AutoIt automate this routine for me? 

Yes. But your next question is how. And for that the answer is try the example code in the help file.
Next question is: which example. And the answer is: all of them.

I call that: "doing the Katas of coding" ;)

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

if you are only wanting to automate this one project and will have no other use for your script once finished, it may be quicker and easier for you to do the job manually than it will be to learn and create a fully functional script.

but, if you are looking to use this project as an opportunity to learn AutoIt then you have a couple of options...

you may be tempted to go with MouseMove and MouseClick to automate the mouse functions, which is fine and can get the job done and is a decent starting point.

OR, you could just skip kindergarten and look into DirCopy, DirMove, FileCopy, FileMove, FileFindFirstFile, and FileGetTime.

If @error Then
    MsgBox(262192, "", @ComputerName & " slaps " & @UserName & " around a bit with a large trout!")
EndIf

"Yeah yeah yeah patience, how long will that take?"  -Ed Gruberman

REAL search results  |  SciTE4AutoIt3 Editor Full Version

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...