Solved

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

Posted on 2000-05-12
9
158 Views
Last Modified: 2013-12-28
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.
0
Comment
Question by:hreinart
  • 3
  • 3
  • 3
9 Comments
 
LVL 3

Expert Comment

by:simonprr
Comment Utility
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.
0
 
LVL 3

Expert Comment

by:simonprr
Comment Utility
BTW, The command ren is short for the command rename (both work).
0
 
LVL 86

Accepted Solution

by:
jkr earned 100 total points
Comment Utility
Sorry, renaming won't work as the file is still in use.

The MS mechanism for replacing files that are in use is described here:

http://support.microsoft.com/support/kb/articles/Q140/5/70.asp ("HOWTO: Move Files That Are Currently in Use")

Be sure to also check out

http://msdn.microsoft.com/library/psdk/buildapp/setup_66es.htm

0
 
LVL 3

Expert Comment

by:simonprr
Comment Utility
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.
0
Free book by J.Peter Bruzzese, Microsoft MVP

Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

 

Author Comment

by:hreinart
Comment Utility
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?
0
 

Author Comment

by:hreinart
Comment Utility
comment for simonprr:
i'll try this out, but fear it'll not work.
...but i hope you're right.
0
 
LVL 86

Expert Comment

by:jkr
Comment Utility
>>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)
0
 

Author Comment

by:hreinart
Comment Utility
thanks, i'll try it and let you know.
what languages do you programm?
(my mail=deuli@addcom.de)
0
 
LVL 86

Expert Comment

by:jkr
Comment Utility
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...
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

A few months ago I had an issue with LaserJet 1020 printer which was installed to XP and Windows 7.  It was installed to XP and working, but when I tried to connect from a Windows 7 PC, it would attempt connection and then fail.  Sometimes the Spool…
A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now