From 8f283dc8000f8220bd8d0b9cb27379227998f0c7 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 e11adba56d..2e0c05437a 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 & " """ & Arg & """" +Next + +CreateObject("Wscript.Shell").Run strCommand, 0, false