作者GodIsland (搞不定吗用C4就对了)
看板EzHotKey
标题[-AI-] 取得档案日期时间秒-CIM_DateFile
时间Tue May 7 17:34:38 2019
"C:\Program Files (x86)\AutoIt3\Examples\COM\Scriptomatic.au3"
首先拿出AutoIt专武,AutoIt Scriptomatic
WMI NameSpace:root\CIMV2 WMI Class:CIM_DataFile
将程式码另外复制到au3档,约63行,
将第12行的$colItems =,修改
11 $oWMIService = ObjGet("winmgmts:\\" & $sComputer & "\root\CIMV2")
12 $colItems = $oWMIService.ExecQuery("SELECT * FROM CIM_DataFile", "WQL", _
13 $wbemFlagReturnImmediately + $wbemFlagForwardOnly)
11 $oWMIService = ObjGet("winmgmts:\\" & $sComputer & "\root\CIMV2")
12 $sDriver = "D:"
13 $sPath = "\\OOO\\XXX\\"
14 $colItems = $oWMIService.ExecQuery("SELECT * FROM CIM_DataFile WHERE Drive =
15 '" & $sDriver & "' AND Path = '" & $sPath & "' And Extension = 'jpg'", _
"WQL", $wbemFlagReturnImmediately + $wbemFlagForwardOnly)
$sPath = "\\路径\\" , 要用\\
WHERE Drive = '" & $sDriver & "' AND Path = '" & $sPath & "' And Extension =
'jpg'"
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 220.132.89.223
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/EzHotKey/M.1557221680.A.F02.html