Hi all, once again I need help with something that should be easy, but I can't get to work. I'ld like to get the output of a command into an environment variable without writing to a temp file. In other words, something that might look like this:

SET dirtemp=<DIR /AD /-P|FIND "Directory"

Obviously, that doesn't work. I've found lots of batch file examples that show how to do this using a temp file, but if possible, I'ld like to avoid that.

Thanks all.

Dex

EDIT: There's supposed to be colon between the A|D above, but the forum wants to make it a "smiley" . . .