Feedback

Verzeichnis im Windows Explorer öffnen

Sprache: C#

Diese kleine Methode öffnet das übergebene Verzeichnis im Windows Explorer. Aufruf: [code]OpenExplorer(@"C:temp");[/code] [u]benötigte usings:[/u] using System.Diagnostics; using System.IO;
private static void OpenExplorer(string path)
{
	if (Directory.Exists(path))
		Process.Start("explorer.exe", path);
}
private static void OpenExplorer(string path)
{
	if (Directory.Exists(path))
		Process.Start("explorer.exe", path);
}