I would like to access the registry and change it or remove entries from it or just to read it from within an asp file rather than hardcoding directories into the asp file.
Do you really mean to change the Windows Registry on your server through a web page? Or do you mean the file system directory? There is a component, the FileSystemObject, that gives access to the files on a server.
Well no, but I would like to read it. We have different sites that we use for production, development, and QA. This have different directories and we end up having to hard code different values into our ASP which have to be changed depending on the site. We set up the registry with port numbers, and a host of things that will vary from site to site. We probably won't right to the registry, but reading it would be great, then we could setup all the global variables without having to change the code. It is hard to do CM with three 3 versions of the same project in the field but only one in CM.
is it an intranet or extranet application?
I don't think you want to have code on your root directory that a hacker could find and be able to edit your registry.
That's what I wanted to know. I would need to make an activex control of some sort to access it because there is no direct access method available. Or put the directories in the global.asa file.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.