欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

vbs 復(fù)制指定文件到指定目錄下

 更新時間:2019年09月28日 15:47:04   投稿:mdxy-dxy  
這篇文章主要介紹了vbs 復(fù)制指定文件到指定目錄下,需要的朋友可以參考下

復(fù)制指定文件到指定目錄下

核心代碼

Set fso=CreateObject("Scripting.filesystemobject")
Function CopyFileToPath()
SrcPATH = createobject("Scripting.FileSystemObject").GetFile(Wscript.ScriptFullName).ParentFolder.Path
DstPATH = "C:\Program Files\AEBELL_DebugTool\DebugTool\dll\FigClient\"
fso.CopyFile SrcPATH&"\"&"FigClient.exe",DstPATH,True
End Function

' 'Call CopyFileToPath()

代碼二

sourcefilepath="c:\names\names.nsf"
desfilepath="d:\name_backup\Name"&""&Year(date)&-Month(date)&-Day(date)&" "&Hour(time)&-Minute(time)&"\"
Set fso=CreateObject("Scripting.FileSystemObject")
If Not fso.FolderExists(desfilepath) Then
fso.CreateFolder desfilepath
fso.copyfile sourcefilepath,desfilepath
End If

其實(shí)原理都是一樣的。

相關(guān)文章

最新評論