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:
1 2 3 4 5 6 7 8 9 10 11
@ECHO OFF
ECHO This will allow you to use BVE2 on Vista (and later) by doing the .dll register trick.
pause
copy d3drm.dll %SystemRoot%\System32
copy dx7vb.dll %SystemRoot%\System32
copy dx8vb.dll %SystemRoot%\System32
cd %SystemRoot%\System32
regsvr32 dx7vb.dll
regsvr32 dx8vb.dll
ECHO It's done now. Enjoy!
pause
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.