Hi
I got a small problem.
Here you can see the code that makes numbers from 1 to 1000 in a autoexec.bat file. But I need some help. How can I insert the txt that is standing in the Autoexec.bat before the 1 - 1000 numbers?
And is it possible to put the exe file somewhere else than on c: like i could put it on c:\my doc\ and from there it would edit the c:\autoexec.bat
the file.. :
#include <stdio.h>
#define MAX 1000
int main()
{
FILE *f;
float x;
f=fopen("autoexec.bat","w");
if (!f)
return 1;
for(x=1; x<=MAX; x++)
fprintf(f,"@ %f\n",x);
fclose(f);
}