[-AI-] 取得檔案日期時間秒-CIM_DateFile

作者: GodIsland (搞不定嗎用C4就對了)   2019-05-07 17:34:38
"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'"

Links booklink

Contact Us: admin [ a t ] ucptt.com