24/05/2009, 05:59 PM
Hey guys,
I'm trying to write a .bat that involves copying 3 dll files to the System32 root directory and registering them. It's for Windows Vista / 7 users and I know that you need admin rights to do anything to the OS drive. This is what I have so far:
I'm trying to write a .bat that involves copying 3 dll files to the System32 root directory and registering them. It's for Windows Vista / 7 users and I know that you need admin rights to do anything to the OS drive. This is what I have so far:
Code:
|
The problem is that I can't get the copy procedure to work. If I run the script as admin, it says that the files cannot be copied or cannot be copied onto itself. If I don't run the script under admin, the copy works but the regsvr32 won't. Reworking it, I figured that I need to launch another cmd under admin after the copy so that the regsvr32 functions can be done. The thing is that I don't know the command for it. (If one such exists) If any of you guys can help, that would be appreciated.
-DC