Link to home
Start Free TrialLog in
Avatar of hreinart
hreinart

asked on

need to exchange a dll but windows doesn't allow it

i need to exchange a dll (msvcrt.dll).
windows nt allows not to rename or delete it, it's in use.

how can i do this?

the pc only runs nt with ntfs, so booting with a dos diskette ... is not possible.
Avatar of simonprr
simonprr

Open a DOS Prompt Window (Run cmd.exe)

cd \winnt\system32 <enter>
ren msvcrt.dll msvcrt.old <enter>
ren newfile.dll msvcrt.dll <enter>

The newfile.dll is the file you want to overright the current one with.
BTW, The command ren is short for the command rename (both work).
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It works in this case. You try it.

In Windows Explorer it won't work, but in the NT DOS Prompt is DOES. Just try it and you'll see what I mean.
Avatar of hreinart

ASKER

comment for jkr:
thanks for this info.
it looks like that i forgot to mention that i want to do this manually. i have no programm which does this for me,
where i could use the information provided by you.

any other idea?
comment for simonprr:
i'll try this out, but fear it'll not work.
...but i hope you're right.
>>i forgot to mention that i want to do
>>this manually

Sorry, being a programmer I often forget about this ;-)


You can do the same by placing an entry like

c:\winnt\system32\msvcrt.dll=c:\replacement\msvcrt.dll

in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\FileRenameOperations

(That's what this API actually does)
thanks, i'll try it and let you know.
what languages do you programm?
(my mail=deuli@addcom.de)
Naja, hauptsaechlich C/C++, wie aus meinem EE-Profile unschwer  zu entnehmen ist ;-)

Oh, yes, don't forget to reboot after placing the entry in the registry...