Pass arguments through to scrcpy.exe

This commit is contained in:
slingmint 2021-01-20 13:13:42 -06:00 committed by GitHub
parent 94eff0a4bb
commit 1a3ea2ba7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1 +1,14 @@
CreateObject("Wscript.Shell").Run "cmd /c scrcpy.exe", 0, false
Set Args = WScript.Arguments
strCommand = "cmd /c scrcpy.exe"
If (Args.Count > 0) Then
strArg = ""
For Each Arg In Args
strArg = strArg + " " + Arg
Next
strCommand = strCommand + strArg
End If
CreateObject("Wscript.Shell").Run strCommand, 0, false