I am trying to call 2 commands together using windows command call
. The commands are invoked from a vbscript file. Cscript
command is used to run the vbscript file. When I run the .vbs file from the cmd a new cmd window is shown. Is there any way to avoid this? I am thinking some thing like start /B
for call
command. My vbscript given below.
DIM BuildExecuteString
BuildExecuteString = "cmd /c call ""C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Tools\VsDevCmd.bat"" & devenv ""Test.sln"" /Rebuild ""Release|Any CPU"" /project ""Test"""
Set objShell = CreateObject("Wscript.Shell")
Call objShell.Run(BuildExecuteString, 1, True)