Some of the components that we usually use when using ASP for network programming, because the components allow us to do complex operations easily, but the ASP defaults to not integrate all the components, so we need to install them when we need to use a component. Today is the way to install and uninstall ASP components through batch processing.
Suppose we want to install a component with the name Htmer.dll, first copy it to a location on the hard disk, and remember the path.
1, install the component method: Copy the following code into Notepad, and save as a. bat file, double-click to run the component installation.
Copy Code code as follows:
Iisreset/stop
Regsvr32 Component Path \htmer.dll
Iisreset/start
2, uninstall the component method: Copy the following code into Notepad, and save as a. bat file, double-click to run the component installation.
Copy Code code as follows:
Iisreset/stop
regsvr32/u Component Path \htmer.dlll
Iisreset/start