0
I am starting with the visual C++ and I have a project where it is necessary the visual c++ to compile the program automatically. so I thought of arguments like we can use in normal prompt like:
cmd /k cd c:/Windows
But I did not find how to do this since the visual c++ is a shortcut that already uses this preargument /k.
%comspec% /k ""C:\Program Files (x86)\Microsoft Visual C++ Build Tools\vcbuildtools.bat"" amd64_arm
I also thought of making a script. bat to open the visual c++ and compile.
%comspec% /k ""C:\Program Files (x86)\Microsoft Visual C++ Build Tools\vcbuildtools.bat"" amd64_arm;
cd C:\Users\Huron\Desktop\Injector\RandoInjector;
cl main.cpp;
And it works only to open the visual c++.
So I’m at this impasse Someone has some idea how to do this?