tonyretoh Posted December 1, 2005 Report Share Posted December 1, 2005 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. Quote Link to comment Share on other sites More sharing options...
kevin Posted December 1, 2005 Report Share Posted December 1, 2005 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. Quote Link to comment Share on other sites More sharing options...
Cory Posted December 1, 2005 Report Share Posted December 1, 2005 FYI to make a counter increment you can simply do a Variable Modify Integer and choose the Increment option. Just a little more elegant than adding one to itself. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.