Jump to content
Macro Express Forums

Can I "repeat With Folders"


jmazor

Recommended Posts

This is probably an easy one - for someone who knows the answer.

 

I want to make it easy to find a folder even if: (1) I only know which of 5 main folders it would be in and I have no idea of which of the scores of sub-folders might contain it; and, (2) I know part but not all of the folder name.

 

First I enter the search term and assign it to %T91%.

 

Then I use a MultiChoice Menu to select the likely main folder, and assign its name to %T94%

 

Then I wanted to use a "Repeat with Folders" command to check each subfolder within the selected main folder. I tell it to look in "F:\WP\%T94% and its subfolder, to return full path folder names and to put them into %T93%.

 

The program tells me: "The specified path "F:\wp\%T94% does not exist."

 

Is the problem that the "Repeat with Folders" command won't accept variables?

 

Thanks for any help you can give.

 

Jeff Mazor

 

Here's the code:

 

Variable Set String %T91% from Prompt

Variable Set String %T11% "ADMIN"

Variable Set String %T12% "Cases"

Variable Set String %T13% "CD"

Variable Set String %T14% "ClientLeases"

Variable Set String %T15% "Forms"

Multiple Choice Menu: Which folder

Text Box Display: Just after multiple

Variable Modify String: Delete Part of %T94%

Repeat with Folder <===== Where Folder=F:\WP\%t94%

If Variable %T93% contains variable %T91%

Text Box Display: %T93% and %N1%

Else

End If

Repeat End

Link to comment
Share on other sites

Jeff -

 

Is the problem that the "Repeat with Folders" command won't accept variables?

No. The command does accept variables. Posting the native Macro Express code along with the command text would help the group determine what the problem may be.

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