Search
 
SCRIPT & CODE EXAMPLE
 

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);
Comment

PREVIOUS NEXT
Code Example
Csharp :: .net disable show exception 
Csharp :: using selected item in listbox c# to fill texbox 
Csharp :: c# words return first 20 items of array 
Csharp :: Handling aggregation responses with NEST c# 
Csharp :: unity convert pixels to units 
Csharp :: c# use cefcharp and selenium can? 
Csharp :: what loops are entry controlled c# 
Csharp :: linq query languages 
Csharp :: print the top view of the binary tree 
Csharp :: c# get buttons row and column in grid 
Csharp :: remove language folders build visual studio 
Csharp :: unity debug log gameobject 
Csharp :: ascx access parent master page 
Csharp :: c# prototype function 
Csharp :: windows form button border color 
Csharp :: Set property of control on form by name 
Csharp :: C# console out restore 
Csharp :: c# restore form 
Csharp :: matric multiplication 
Csharp :: parse persian date string to datetime c# 
Csharp :: binary search tree c# stackoverflow 
Csharp :: how to get c# code of aspx page 
Csharp :: imagetarget found event vuforia c# 
Csharp :: .net core string compare ignore case and accents 
Csharp :: subarray c# 
Csharp :: Valid date check with DateTime.TryParse method 
Csharp :: get local position unity 
Csharp :: Compiling C# Example 
Csharp :: how to if i enter 1 go to this program C# 
Csharp :: using autofac with automapper .net 6 with dependency injection 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =