Optimizer

Hey everyone! I am working on an RAM optimizer in C++,
And i know that it it possible to execute commands through CMD using system(),
But i was wondering, what about a full script? Like this,
1
2
3
@echo off
echo Hello World!
pause

Is there another function which can execute full scripts? Which is m best choice? Should i read the script from a file?
Thank you for reading this :P
Your program could write the commands into a batch file and use system() or sth. else to execute the batch file and delete the file afterwards.
Look at powershell if your using windows 7 or newer.
Topic archived. No new replies allowed.