copy file on reboot in xp?

May 18, 2009 at 15:32:37
Specs: Windows XP
I need this somthing that will replace a system file on reboot. I'm trying to replace a dll that windows uses, and I can't overwrite
it when windows is running. I don't want to use a app for it because its going to be my own app that modifyes system files to change the look of the system.
So would anyone know if there is a command that will copy and replace a dll on reboot or even a file that i could enter a command into so it will execute before booting?
Hope someone can help!!

See More: copy file on reboot in xp?

Report •

May 19, 2009 at 09:10:30
I think you will need to write a C or C++ application using the Win32 API MoveFile with the option MOVEFILE_DELAY_UNTIL_REBOOT.

Report •

May 19, 2009 at 10:40:03
See i'm pretty sure there is a much simpler way of doing this but i have not found a way yet. If you install seven transformation pack (Or Vista transormation Pack) and then run Copy Lock
> it will show you the files that are going to be moved. So if i just figure out how it does this i can find a way to implant it in to the setup file. But so far the only way i can think of getting it in the setup file is by using a batch file that launches after the setup.

Report •

Related Solutions

Ask Question