I'm starting with the visual C ++ and I have a project where it is necessary to visual c ++ compile the program automatically. so I thought of arguments like we can use at the normal prompt like:
cmd /k cd c:/Windows
But I have not figured out 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 about making a .bat script to open the c ++ visual 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 just to open the visual c ++.
So I'm in this impasse does anyone have any idea how to do this?