Thanks for your help time to learn some C hope i can handle it.
also say i learn it would my c program function the same if not better then my batch file?
Well, as CommonTater already mentioned, some things might work better as a batch file and some things might work better in a C (or any other compiled language) program...
In the simplest form, you could just make shell calls for most of the DOS commands. However that will present some problems getting error/result codes from those external commands back to your C program, as this is for the most part a one way street...
And you need to realize that replacing a lot of those DOS commands from the batch file, like XCOPY (which is an external program all by itself) or RD, "IF EXIST" (which are internal commands to the command shell) can be quite elaborate, which might need not only some knowledge of the C language itself but on some knowledge about how Windows itself operates...
What would be your intended goal of replacing that batch file with a C program?
Ralf