Including a bat with arguments (that launchs a cmd window and adds commands to the path) into another bat
1
I have a bat file running a command : C:WindowsSystem32cmd.exe /E:ON /V:ON /K ""C:Program Files (x86)pathtothecompilersscript.bat" option1 option2" It basically opens a cmd windows for which different commands (intel compilers etc) are already in the path. Then, in this command window I cd to a specific location and I use these intel commands as follows : ifort -c -fpp file1.f90 ifort -c -fpp file2.f90 ifort -c -fpp file3.f90 ifort -dll -o libfinal.dll file1.obj file2.obj file3.obj lib /out:./libfinal.lib file1.obj file2.obj file3.obj xcopy /s .libfinal.dll "..libfinal.dll*" /Y xcopy /s .libfinal.lib "..libfinal.lib*" /Y which compile (with ifort intel fortran compiler, but the question doesn't depend on it) libraries and copies them somewhere. I wou...