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);
}
Alte URL:
/snippet/verzeichnis-im-windows-explorer-oeffnen/1198