Click to See Complete Forum and Search --> : explorer.exe /select not working


foamy
February 14th, 2008, 02:30 PM
I'm trying to open a folder from c# code and set focus to a certain file. I can open the folder, but I can't get the file to be selected.


Process.Start(path, "/Select " + filename);


The code doesn't work, what am I doing wrong ?

Thanks in advance!

EDIT: How did I miss that?!?!?!

The proper way is this:


Process.Start("explorer.exe ", "/select, " + path + filename);


sorry for posting things that I solve myself :)