Showing file in Windows Explorer Showing file in Windows Explorer windows windows

Showing file in Windows Explorer


As per https://support.microsoft.com/en-us/kb/152457, which states "switches can be combined", what about:

explorer /n,/select,c:\path\to\file.ext

/n should force a new window.


I dont know if one exists, but if you create utility which would be implement such solution(C++) it would work as you expected:

void OpenFileInExplorer(LPCTSTR filename){    ITEMIDLIST *pidl = ILCreateFromPath(filename);    if(pidl)     {        SHOpenFolderAndSelectItems(pidl,0,0,0);        ILFree(pidl);    }}