Thank you for the prompt reply. By file currently selected, I mean that if you click on an icon with mouse or move to it with keyboard, is there anyway of detecting what the name of that file is. Example: If I open my C drive and click once on the WinNT folder, it is the currently selected file. Which reminds me, and I apologize, but does the code work for NT? I forgot to mention that.

Joe