selkov Posted September 9, 2008 Report Share Posted September 9, 2008 What I need help with is this: I need some way to cycle thru all files in a directory. Choose the topmost file Create a new directory in a different location and name it the same as that file Move the file there. Open the file. Can anyone help me please? Thanks for looking -eds Quote Link to comment Share on other sites More sharing options...
kevin Posted September 9, 2008 Report Share Posted September 9, 2008 I need some way to cycle thru all files in a directory. Take a look at the Repeat with Folder command. There is an example of how this in the 'Process Folder' macro found in the 'Samples.mex' macro file installed in the folder where your Macro Express Program files are located (by default c:\Program Files\Macro Express3). There are a couple of ways to load these macros to allow you see how they work. 1. You could import them into your macro file by clicking File, Import, Import Macros. Choose the samples.mex (by default located in c:\Program Files\Macro Express3). 2. You could also open the samples.mex file in Macro Express. Click File, Open Macro File and choose samples.mex (again, in the folder where the Macro Express program files are loaded). If you choose to do this make sure that you Reopen your existing macro file (File, Reopen) before editing any macros in this file. Quote Link to comment Share on other sites More sharing options...
selkov Posted September 9, 2008 Author Report Share Posted September 9, 2008 Kevin, Thanks i did not know that. That solves some of the problem but i still can not figure out how to Create a new directory in a different location and name it the same as that file. Any other help would be appreciated.. -eds Quote Link to comment Share on other sites More sharing options...
selkov Posted September 9, 2008 Author Report Share Posted September 9, 2008 Thanks.....GOT IT Quote Link to comment Share on other sites More sharing options...
Cory Posted September 10, 2008 Report Share Posted September 10, 2008 A quick and simple way to get the first file in a folder is to use Repeat With Folder with the only command inside a Break. 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.