I'm pursuing a will 'o the wisp. If I can determine that there are folders in a folder, then I want to run a loop for each folder; but if there are no folders, I don't want to run the loop. So I'm working on an If statement.
Quote:
1 Keystrokes: [ALT DOWN][TAB][ALT UP] in "Currently Active Window"
2 Keystrokes: [ALT DOWN]d[ALT UP][CTRL DOWN]c[CTRL UP] in "Currently Active Window"
3 Assign value of Clipboard to variable "$folderpathandname$
4 If Folder Exists("$folderpathandname$\*") Then (Wait up to 2 seconds - for Folder to exist)
5 Comment: Please enter the conditional commands here.
6 Message Box: "There is a folder in this folder."
7 End If
|
The first three lines capture the folder and path name of the current directory in a Windows Explorer window, and assign them to a variable, which I then use in an If statement using * as a wild card. The wild card doesn't seem to work. Is there something wrong with my syntax, or is there some other way to do what I want?
(The loop, by the way, would go where the message box command is now.)