this works fine in any version of windows all the way up to XP..
It will not work in vista, is just opens the "users" folder and selects nothing.

Code:
//open and select the file in windows explorer
//more info about this at http://support.microsoft.com/default...;EN-US;q152457
CString sFile = "C:\\test.txt";
CString s;
s.Format("/select,\"%s\"",sFile);
ShellExecute(NULL,_T("Open"),_T("Explorer"),s,NULL,SW_SHOWDEFAULT);

Does anyone know how to make this work in vista?
I have looked through MSDN and found nothing