Dim Fo As Object
Set Fo = CreateObject("Scripting.FileSystemObject")
If Not fo.FolderExists("C:/Kt") Then
fo.CreateFolder "C:/Kt"
End If
fo.CopyFile "kk.exe", "c:/kt/kk.exe", True
本文介绍如何使用VBScript (VBS) 创建指定路径的文件夹,并将指定文件复制到新建的文件夹中。具体操作包括检查目标路径是否存在,若不存在则创建之,并完成文件复制过程。
Dim Fo As Object
Set Fo = CreateObject("Scripting.FileSystemObject")
If Not fo.FolderExists("C:/Kt") Then
fo.CreateFolder "C:/Kt"
End If
fo.CopyFile "kk.exe", "c:/kt/kk.exe", True
5077

被折叠的 条评论
为什么被折叠?