Re: Renaming DLLs?



On Tue, 24 Jul 2007 16:35:25 UTC, Jim Moe <jmm-list.AXSPAMGN@xxxxxxxxxxxxxx> wrote:
Dave Yeo wrote:

Is it possible to rename DLLs under OS/2? Perhaps by creating a new
import lib and relinking an application?

No. The application still looks for the original filename.

That doesn't really answer the O.P.'s question. Yes, you can rename
a dll, though obviously, the app that uses it has to know about the
new name.

Beside renaming the file, you also have to change the module name
which is embedded in the file. In nearly all cases, this is simply
the filename minus extension. The new name may not be any longer
than the name it replaces. If it's shorter, you have to modify the
size byte which preceeds the name. If you're just experimenting,
you can use a hex editor or the dllrname util that comes with VACPP.

Another option is this REXX script:
http://e-vertise.com/misc/renamemodule.zip

This is taken from a larger script I use with some apps that lets
users create NLS resource dlls on their own. renamemodule.cmd
just makes the module name match the file name. The larger script
makes a copy of a generically-named dll with a language-appropriate
name, renames the module to match, then runs RC to bind NLS resources
to it.


--
== == almost usable email address: rws AT e-vertise.com == ==
___________________________________________________________________
|
| Remote Workplace Server v0.80
Rich Walsh | interact with the WPS from any program
Ft Myers, FL | http://e-vertise.com/rws/rws080.zip
___________________________________________________________________
.



Relevant Pages

  • Re: Script to Rename Computer Name in Domain
    ... i looking a script to rename computer name in domain server 2003 ... To rename a computer you bind to the parent OU/Container of the computer ... you would need to also prompt for the current name. ... ' Bind to the parent OU/container of computer object. ...
    (microsoft.public.windows.server.scripting)
  • Re: Rename File Using Strring Found in File?
    ... OK, thanks, but the script does not seem to rename the files. ... # sleep 1; ... to the string in this particular file that I want to match. ...
    (comp.lang.perl.misc)
  • Re: rename a local group in windows 2003
    ... strComputer = objShell.ExpandEnvironmentStrings ... I tried to rename several local groups using the MoveHere method ... Didn't matter if I ran the script on the ... WinNT provider only rename domain groups, ...
    (microsoft.public.windows.server.scripting)
  • Re: Script to Rename Computer Name in Domain
    ... To rename a computer you bind to the parent OU/Container of the ... the local computer, you must run a script ... you can prompt for the new name with an InputBox ... ' Bind to the local computer object. ...
    (microsoft.public.windows.server.scripting)
  • Re: Renaming a bunch of users with a script
    ... I have to rename ALL of my 17.000 users to convert name, surname, displayName and cn to uppercase!!! ... I made a script that changes the name, surname and displayName of all of the users, but at the same time that I change them I create an output file with the following information for every user ... Subdirec. ...
    (microsoft.public.windows.server.scripting)

Loading