Sorry for the double Replies ,but i won't to explain in more simple way

1)The Programme is running.
2)Temp.bat has been made at the same path as the programme's one.

the third one is that i need ,if the path i've provided is C:\\Temp.bat ,and i moved the programme to D:\\ ,the (.bat) file will be created in D:\\ ,so no Temp.bat well be found at C:\\


simply:

system("%CPP.exe path%~~\\Temp.bat");


GOT IT?