w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Batch script not processing input parameter to nested batch file
cmd /k vcvarsall.bat x86_amd64 < crosscompile.bat x64

This means: start a cmd instance with the input stream redirected from the file (the file in disk, not the execution of) crosscompile.bat and the arguments to the cmd instance are the rest of the line, that is, /k vcvars.bat x86_amd64 x64

It is a lot easier to do

cmd /k " "vcvarsall.bat" x86_amd64 & "crosscompile.bat" x64"

Initialize variables, and then call the compile bat.

edited this is the command line i use for testing.

"%comspec%" /k " "c:Program Files (x86)Microsoft Visual Studio
10.0VCvcvarsall.bat" x86 & "c:	estvc.bat" x86"




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.