From dd453ad041b0dcf0486610a2215c2d86499d66a7 Mon Sep 17 00:00:00 2001 From: slingmint Date: Wed, 20 Jan 2021 13:13:42 -0600 Subject: [PATCH] Pass scrcpy-noconsole arguments through to scrcpy PR #2052 Signed-off-by: Romain Vimont --- data/scrcpy-noconsole.vbs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/data/scrcpy-noconsole.vbs b/data/scrcpy-noconsole.vbs index e11adba5..d509ad7f 100644 --- a/data/scrcpy-noconsole.vbs +++ b/data/scrcpy-noconsole.vbs @@ -1 +1,7 @@ -CreateObject("Wscript.Shell").Run "cmd /c scrcpy.exe", 0, false +strCommand = "cmd /c scrcpy.exe" + +For Each Arg In WScript.Arguments + strCommand = strCommand & " """ & replace(Arg, """", """""""""") & """" +Next + +CreateObject("Wscript.Shell").Run strCommand, 0, false