QTP中對映驅動器和複製資料夾的指令碼

wzdoxu88發表於2007-12-24
QTP中對映驅動器和複製資料夾的指令碼

對映驅動器:
Set WshNetwork = CreateObject("Wscrīpt.Network")
WshNetwork.MapNetworkDrive "z:","10.0.0.2081","1","1"

複製資料夾:
Const ōverWriteFiles = True
Set ōbjFSO = CreateObject("scrīpting.FileSystemObject")
objFSO.CopyFolder "C:pcnet" , "Z:" ,OverWriteFiles
[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9294812/viewspace-995618/,如需轉載,請註明出處,否則將追究法律責任。

相關文章