Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
This commit is contained in:
2025-05-21 13:42:11 +07:00
parent be74f191c7
commit a5a0e6b8dc
2 changed files with 19 additions and 0 deletions

View File

@@ -493,6 +493,21 @@ namespace domain_utility
BackToMenu(DisableKdeWallet);
}
static void OpenRemoteFilesystemWindows()
{
string remote = InputData("открыть файловую систему удаленного ПК (Windows)\n\nВведите IP адрес или имя компьютера (пр. 10.234.16.129, 'IT04', '630300IT04', 'R54-630300IT04'):",
OpenRemoteFilesystemWindows);
remote = $"\\\\{remote}\\c$";
Process proc = new Process();
proc.StartInfo = new ProcessStartInfo("explorer", remote);
proc.Start();
AnsiConsole.WriteLine("Файловая система открыта.");
BackToMenu(OpenRemoteFilesystemWindows);
}
private class MenuItem
{
public string Name { get; }
@@ -519,6 +534,7 @@ namespace domain_utility
new MenuItem("посмотреть время работы компьютера (Linux)", () => ShowLinuxComputerBootupTime()),
new MenuItem("сменить пароль для 802.1x (Linux)", () => ChangeRemote802Password()),
new MenuItem("отключить KDE кошелек (Linux)", () => DisableKdeWallet()),
new MenuItem("открыть файловую систему удаленного ПК (Windows)", () => OpenRemoteFilesystemWindows()),
};
static void Menu()