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

  • 相关阅读:
    小希的迷宫
    不下降序列
    Stones on the Table
    glsl之纹理演示
    glsl之多重纹理演示
    6.12
    这狗日的生活
    小楼一夜听春雨,天下谁人不识君?
    lua 调用C/C++
    D3DFVF_XYZ和D3DFVF_XYZRHW的区别
  • 原文地址:https://www.cnblogs.com/BeyondTechnology/p/1960142.html
Copyright © 2011-2022 走看看