As we all know, the FileSystemObject component's powerful and destructive is its repeated free homepage
The reason for the disabling of providers (those that support ASP), which I sorted out, would have only found two ways, and later
Be stimulated by someone, just think of a third kind of unknown method, hehe, also do not know is this.
First: Use regsrv32/u c:windowssystemscrrun.dll (win98 path) to unregister the group
Thing This method is too vicious, belong to the method of destruction, we all have no use, is the next recruit
Second: Modify the value of the ProgID, the way in which the component is invoked in ASP is usually the Set object name =server.
CreateObject ("Progid"), this time we can modify the registry Progid value from the
To the method that disables the component. In the start-run regedit, and then find Hkey_classes_roo
Tscripting.filesystemobject, this time we can change the value of the ProgID, such as change
Into Scripting.filesystemobject8. This is called in the ASP page:
<%@ language=vbscript%>
<%
Set fs=server.createobject ("Scripting.filesystemobject8")
%>
(If you have not called the component before, you do not need to reboot, you can see the effect, otherwise please heavy
Look at the effect after Kai. )
This time we look at the result of the original invocation method:
<%@ language=vbscript%>
<%
Set fs=server.createobject ("Scripting.FileSystemObject")
%>
The results of this operation are:
Server object error ' ASP 0177:800401f3 '
Server.CreateObject failure
/aspimage/testfile2.asp, Line 3
800401f3
(OK, meet our requirements)
This method because I was late two steps, the result let others rob answer, so greatly stimulated me, knot
The result is a third method.
The third: Careful experts will think that, since you can modify the ProgID value to disable the component, the CLSID is
Is it possible to modify it? (OK, you want to be like me) we know that apart from the CreateObject method to
, you can also use the general <object> annotation to build a component, we can use the HTM in ASP
L <object> Callout To add a component to the Web page. The method is:
<object runat=server id=fs1 scope=page progid= "Scripting.filesystemobj
ECT "></object>
Runat representation is performed on the server side, scope represents the lifecycle of the component, and can be selected with SESSION,APPL
Ication or page (either the current page or the default)
This kind of writing is useless to us, there is another way of writing:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.