Jump to content
Macro Express Forums

Copy, move and rename


Recommended Posts

I am a macro newbie. I have a fairly easy problem. I need to copy, move and rename some files. The files are date specific (creation date). How do I create a macro to copy a file by the creation date? I'm guessing that this would be some kind of a variable (?). I don't know much about variables. I think I can figure out the move and rename part of my process. I just need help with the date specific files. Please help me with this date specific problem. Thanks.

Link to comment
Share on other sites

Welcome to the forum.

 

First I would like to suggest that you do this with the file manipulation commands in MEP. IE as opposed ot trying to do something with the GUI of the Explorer windows.

You are correct about variables. You are not specific about what you are doing but there are date and text variables and commands to get various dates from a file. Check out the command Variable Set from File for instance. Here you can set a text to time variable to creation, modification, or last accessed time. Then you could apply logic to these if If conditions and such.

 

Let me give you a shot-in-the-dark example. Let’s say I have a bunch of files in a folder and I need to rename and move them into a folder structure of c:\Files\Year\Month\day.txt. Well I could use the Repeat With Folder to go thru every file and then set variables for the year, month and day then move/rename them to the new folder structure. MEP makes this very easy.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...