views:

231

answers:

2

a task at my hand requires me to move an ASP application from one server to another. For this, I need two command line tool like stuff to know the following info.

  1. Get the list of com objects used in this asp project.
  2. Get the list of registered com objects in my existing server.

Any Idea ?

+1  A: 

A quick search for "CreateObject" should some up all the COM objects created from VBScript in the ASP pages. You should also check the global.asa for any object tags, which is the other way COM objects get instantiated. If you also have server side Javascript then you should also look for "ActiveXObject".

I expect you could extract this info with commandline tools like grep etc, but unless you are doing this over and over again on different setups then it would almost certainly be quicker to do in VS.NET or something like Agent Ransack.

andynormancx
Thanks a lot, How Do I detect If a COM component is already Registered. Or Get a list of COM components registered on the server.
Kalyan Ganjam
You can try to create the object and see if that works or not to see if it's registered.
svinto
+1  A: 

As suggested by @andynormancx, search your code for appropriate calls:

  • CreateObject
  • GetObject
  • object tags in global.asa
  • ActiveXObject (from javascript)

You can use WMI objects to get a list of all COM objects on the existing server. This probably won't be hugely useful, but maybe do this on your new server and then do a diff between the two to identify differences that might be important. A sample script for getting the list of objects is here:

Rory