i need help with CopyFile
-
I need source code to a program that copies itself into a certain directory like "C:\Program Files" and I want it to have a list of certain names. I got this so far: void main() { char *filenames[] = {"information.exe", "test.exe", "testing.exe" }; LPCTSTR Destination = ("C:\\Program Files\\"); CopyFile(ModuleFileName, Destination); } but I don't know how to copy itself as those filenames. -Ryan M.
-
I need source code to a program that copies itself into a certain directory like "C:\Program Files" and I want it to have a list of certain names. I got this so far: void main() { char *filenames[] = {"information.exe", "test.exe", "testing.exe" }; LPCTSTR Destination = ("C:\\Program Files\\"); CopyFile(ModuleFileName, Destination); } but I don't know how to copy itself as those filenames. -Ryan M.