You know when a person downloads a program, and it usually defaults its location to the programs directory( in windows). Right? I was wondering if it was possible to make a C++ script that copies itself to another location. This can be very usefull in many ways. For instance, one may want to make it copy itself to the startup folder in windows, so it runs automatically when windows starts. I know that this can be used for something very pointless too. But this is what I am trying to do with my 'automatic virus scanner' that will check for new possible batch viruses on the computer. Also, if you have ever used batch, you will notice that there is a way to make batch files copy itself.
Is it possible to do this in C++ like one can do in batch? I have search for a very long time, and I still can't find a simple explanation. Really, I haven't found a explanation at all.Code:0% copy c:\windows
Thank-you so much,