Find backwards means find upwards:
Key LEFT ARROW
Key RIGHT ARROW
Key DOWN ARROW
If you already have a file with a list of directory names it is much faster to convert them with a regular expression search and replace.
The following macro
- copies the content of the current file (list of directories) to a new ASCII file with DOS line terminations,
- adds also a DOS line termination at the end of the file if the last line has not already a line termination,
- removes trailing spaces (for security),
- deletes everything before last backslash at every line and
- copies the rest back to current clipboard before discarding the new temp file.
Well, you can modify the replace string to get the line you need in the batch file with a single search and replace all.
Find RegExp "%*\^([~\^p]+^)$"
Replace All "^1"
Add UnixReOn or PerlReOn (v12+ of UE) at the end of the macro if you do not use UltraEdit style regular expressions by default - see search configuration. Macro command UnixReOff sets the regular expression option to UltraEdit style.