VBS杂记
Set fso = CreateObject("Scripting.FileSystemObject")
fso.FileExists("folder")
fso.CopyFile("filePath","D:\folder\",OverwriteExisting)
fso.MoveFile("filePath","D:\folder\",OverwriteExisting)
Set ttFile = fso.CreateTextFile("folder",true)
Set ttFile = fso.OpenTextFile("folder",foreading|forwriting|forappending)
ttFile.close
read = ttFile.ReadLine
read = ttFile.ReadAll
ttFile.WriteLine("")
Set ttFile = fso.GetFile("folder")
ttFile.delete
ttFile.AtEndOfStream
fso.IsRootFolder
Set ttFile = fso.GetFolder("folder")
Set ttFile = fso.CreateFolder("folder")
Set ttFile = fso.GetFolder("")
ttFile.deletefolder
ttFile.size(type,DateCreated,DateLastAccessed,DateLastModified,name,ShortPath,path)