Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 212
  • Last Modified:

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.
0
hreinart
Asked:
hreinart
  • 3
  • 3
  • 3
1 Solution
 
simonprrCommented:
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
 
simonprrCommented:
BTW, The command ren is short for the command rename (both work).
0
 
jkrCommented:
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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
simonprrCommented:
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
 
hreinartAuthor Commented:
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
 
hreinartAuthor Commented:
comment for simonprr:
i'll try this out, but fear it'll not work.
...but i hope you're right.
0
 
jkrCommented:
>>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
 
hreinartAuthor Commented:
thanks, i'll try it and let you know.
what languages do you programm?
(my mail=deuli@addcom.de)
0
 
jkrCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now