Skip to content

Display and control your Android device

Pass scrcpy-noconsole arguments through to scrcpy

slingmintdd453ad041b0
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