Jump to content
Macro Express Forums

Can ME copy an image .. rename is and move to a different folder


Recommended Posts

Before i start trying to make this macro i need to know if it's possible.


At the moment i have it taking 1 images, Duplicating it 25 times and renaming each one and moving to the next.


The image is named nearly the same only 2 letters at the start









DE -Imagename-Image.jpg


and so on,, They are country codes.


Each of these images much go into there country folders on the server,


so the AR-Imagename-Image.jpg would need to be moved to \server\web\com\public\AR\images\folder\ etc ( note these folders are on my PC and ME wouldn't have to connect to a Server or FTP .. just normal folders on a PC )


these are just samples names but its the same thing that i need.


So can ME do something like this ?




Link to comment
Share on other sites

Use "Repeat with Folder" to get each file name.


If necessary use "Variable Set From File Path" to separate the file name and extension from the full path of the file.


Use "Variable Modify String: Copy Part of %T1% to %T2%" to copy the first two characters from the file name to another variable.


Use the "Copy File or Files: " command with something like this "\server\web\com\public\%T2%\images\folder\" for the new name.


Like this:

Repeat with Folder
 Variable Set From File Path
 Variable Modify String: Copy Part of %T1% to %T2%
 Copy File or Files: "%T1%"
Repeat End

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.

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.

  • Create New...