zoukankan      html  css  js  c++  java
  • Delete Visual C++ Useless Files

    Option Explicit
    Dim FullFileName
    FullFileName = Wscript.ScriptFullName
    Dim CurrentPath
    CurrentPath = Left(FullFileName,InstrRev(FullFileName,"\") -1)
    Dim fso
    Set fso = CreateObject("Scripting.FileSystemObject")
    Dim Folder,Files,SubFolder
    Set Folder = fso.GetFolder(CurrentPath)
    VisitAndDelete(Folder)


    Function VisitAndDelete(path)
    Dim fso
    Dim objFolder,objSubFolder,objSubFolders,CurrentPath,objFiles
    Set fso = CreateObject("scripting.filesystemobject")   
    Set objFolder = fso.GetFolder(path)

    Set objSubFolders = objFolder.Subfolders
    For Each objSubFolder In objSubFolders
        CurrentPath = path + "\" + objSubFolder.Name
         On Error Resume Next 
        fso.DeleteFile(CurrentPath & "\*.ncb")
     fso.DeleteFile(CurrentPath & "\*.suo")
        VisitAndDelete(CurrentPath)
    Next
    Set objFolder = Nothing
    Set objSubFolders = Nothing
    Set fso = Nothing
    End Function

  • 相关阅读:
    day10 测试2
    算法题
    day10 自动化测试
    day09 测试
    进行试验,对比
    多层网络的SIR实现
    day08 商城项目
    day07 cookie session 模板
    day06 模型类
    纸上谈兵:图(graph)
  • 原文地址:https://www.cnblogs.com/BeyondTechnology/p/1960142.html
Copyright © 2011-2022 走看看