My question is \'How to write batch file in batch file,that will create new batch file when ran?\'
Like this :
echo systeminfo >>info.txt >>SystemInfo.ba
you will have to escape special chars:
echo systeminfo ^>^>info.txt >>SystemInfo.bat