作者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/m.aspx?n=bbs/EzHotKey/M.1557221680.A.F02.html