Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# open explorer and select file

// suppose that we have a test.txt at E:
string filePath = @"E:	est.txt";
if (!File.Exists(filePath))
{
    return;
}

// combine the arguments together
// it doesn't matter if there is a space after ','
string argument = "/select, "" + filePath +""";

System.Diagnostics.Process.Start("explorer.exe", argument);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #open #explorer #select #file
ADD COMMENT
Topic
Name
5+7 =