mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
[Run] Open in console functionality (#4739)
* Added open in console for indexer * Added open in console fpr indexer and folder plugin * Added open in console to program plugin * Added string localization for program plugin * Added test for win32 program * Added test for win32 programs * Added test for indexer plugin * Localization for context menu title * Added tests for folder plugin * Added tests for indexer plugin * Code cleanup * Improved logging and nit fixes * Updated tooltip for open in console * Updates tests * Removed subtitle property from contextmenuresult class * Improved logging for context menu loaders
This commit is contained in:
committed by
GitHub
parent
e3e6b23b7c
commit
638cd1dd48
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
@@ -74,5 +75,16 @@ namespace Wox.Infrastructure
|
||||
);
|
||||
return formatted;
|
||||
}
|
||||
|
||||
public static Process OpenInConsole(string path)
|
||||
{
|
||||
var processStartInfo = new ProcessStartInfo
|
||||
{
|
||||
WorkingDirectory = path,
|
||||
FileName = "cmd.exe"
|
||||
};
|
||||
|
||||
return Process.Start(processStartInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user