Jump to content
Macro Express Forums

Moving Image Files


tonyretoh

Recommended Posts

I am new to Macro Express. I am interested in creating a macro that will move image files (.jpg) from the current folder to a newly created folder. I would like to repeat the process until all files have been moved. I have been able to move all the files into a new folder, but I can't move a set number of them and then start the process over until all files have been moved. I have tried to create a counter to identify the files in the current folder, but that does not seem to work. I used the following counter that I found in the help file:

 

variable set integer %n1% to 0

repeat with folder

variable modify integer: %n1%=%n1% + 1

repeat end

text box display: files in folder

 

I can only get "files in folder message", but not the files in the current folder. I have not been able to get past this part. Any assistance would be greatly appreciated.

Link to comment
Share on other sites

This will move all the files from one folder to another:

Repeat with Folder
 Move File or Files: "%T1%"
Repeat End

If you want to limit the number you move at one time, you might try this:

// Set N2 to the number of files you want to move at a time ... in this case 20
Variable Set Integer %N2% to 20
Variable Set Integer %N1% to 0
Repeat with Folder
 Move File or Files: "%T1%"
 Variable Modify Integer: %N1% = %N1% + 1
 If Variable %N1% >= variable %N2%
   Repeat Exit
 End If
Repeat End

You can simply repeat the macro to move another group of files.

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...