Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.
C++ code to wright a bat file
#include <fstream>
using namespace std;
int main()
{
ofstream Fil("something.bat", ios::app);
Fil<<"@echo off"<<endl;
Fil<<"echo Hallo,world"<<endl;
Fil<<"pause"<<endl;
Fil.close();
return 0;
}
This code will make a batch file look like this:
@echo off
echo Hello, world
pause
hust921B)