mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-29 11:34:13 +02:00
17 lines
542 B
C#
17 lines
542 B
C#
using System.Diagnostics;
|
|
using System.IO;
|
|
using TweetLib.Core.Application;
|
|
|
|
namespace TweetDuck.Application{
|
|
class SystemHandler : IAppSystemHandler{
|
|
void IAppSystemHandler.OpenFileExplorer(string path){
|
|
if (File.Exists(path)){
|
|
using(Process.Start("explorer.exe", "/select,\"" + path.Replace('/', '\\') + "\"")){}
|
|
}
|
|
else if (Directory.Exists(path)){
|
|
using(Process.Start("explorer.exe", '"' + path.Replace('/', '\\') + '"')){}
|
|
}
|
|
}
|
|
}
|
|
}
|