Computing.Net > Forums > Programming > copy file on reboot in xp?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

copy file on reboot in xp?

Reply to Message Icon

Name: JDawson
Date: May 18, 2009 at 15:32:37 Pacific
OS: Windows XP
Subcategory: General
Comment:

HI,
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!!



Sponsored Link
Ads by Google

Response Number 1
Name: klint
Date: May 19, 2009 at 09:10:30 Pacific
Reply:

I think you will need to write a C or C++ application using the Win32 API MoveFile with the option MOVEFILE_DELAY_UNTIL_REBOOT.


0

Response Number 2
Name: JDawson
Date: May 19, 2009 at 10:40:03 Pacific
Reply:

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.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Passing multiple files in... Startup Password In Recov...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: copy file on reboot in xp?

batch copy file on Ping Errorlevel= www.computing.net/answers/programming/batch-copy-file-on-ping-errorlevel/18016.html

copy file on filesize condition DOS www.computing.net/answers/programming/copy-file-on-filesize-condition-dos/13911.html

regsvr32 failure in XP (but okay in 98) www.computing.net/answers/programming/regsvr32-failure-in-xp-but-okay-in-98/2814.html