I am writing a little batch file for clearing the preferences (deleting the contents of a settings folder) from Adobe Illustrator when things go south and it starts to flake out (which happens frequently enough to necessitate this batch file unfortunately).
We have a have a few different versions of CS in use so the name of the folder changes with the version. I am writing this batch file so that its intelligent enough to find the folder without me having to program the different versions into the batch file. Also in the instance where it finds more than 1 version installed, it asks the user which version it wants to clear the preferences from.
Where I am stuck is trying to find a batch command that will allow me to echo 'X' line from some piped input like a
dir /b /ad %userprofile%\AppData\Roaming\Adobe\Adobe Illustrator CS*
and only return the line I choose.
Is this possible without any other dependencies or software required?
I have looked at FIND and FINDSTR and I cant see that either can be used for this purpose. But that doesn't mean I'm right about that. =]
Thanks in advance folks.