From 79a708f7d36e82165d03bbf77ab437e03058bc59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miskolczi=20Rich=C3=A1rd?= Date: Tue, 28 Mar 2023 13:26:55 +0200 Subject: [PATCH] Apparently there's no such thing as echo.exe, it's a part of cmd.exe --- Password Manager/PasswordGenerator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Password Manager/PasswordGenerator.cs b/Password Manager/PasswordGenerator.cs index 12c27ac..27a93f9 100644 --- a/Password Manager/PasswordGenerator.cs +++ b/Password Manager/PasswordGenerator.cs @@ -40,8 +40,8 @@ namespace Password_Generator { StartInfo = new ProcessStartInfo { - FileName = "echo", //TODO: pipe the return value of RandomStr to gpg with the --quiet --encrypt --recipient {recipient} flags - Arguments = $"{RandomStr(length, no_symbols)} | gpg --quiet --encrypt --recipient {recipient}", + FileName = "cmd.exe", //TODO: pipe the return value of RandomStr to gpg with the --quiet --encrypt --recipient {recipient} flags + Arguments = $"echo {RandomStr(length, no_symbols)} | gpg --quiet --encrypt --recipient {recipient}", UseShellExecute = false, RedirectStandardOutput = true, CreateNoWindow = true