sorry for asking this question here, but last option. "dir /s /b" as pointed out to me earlier works fine. However, it willl be more convenient for me to have filenames displayed only as "MYDOCUME~1" instead of "MY DOCUMENTS" which has blanks. (So that its easier to write scripts, string comparison as opposed to sentence comparison etc). How could I do this ? The dir switch /X prints the short form which I want, but doesn't suppress the long names as well. Any ideas ? Thanks, Tony Gogoi - : send the line "unsubscribe linux-admin" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html