2013-04-28 119 views
3

我試圖從使用VBScript的圖像集合中提取GPS元數據。使用Shell.Application對象我可以從文件中獲取元數據,但它們不包含GPS信息。可能嗎?簡稱腳本解析從文件metada我使用:帶有WSH腳本的GPS元數據

<job id="main"> 
    <object id="objShell" progid="Shell.Application" /> 
    <script language="VBScript"> 
     Dim arrHeaders(300) 
     Set objFolder = objShell.Namespace("c:\Path\To\Folder\With\One\Jpg\") 
     For i = 0 to 299 
      arrHeaders(i) = objFolder.GetDetailsOf(objFolder.Items, i) 
     Next 
     For Each strFileName in objFolder.Items 
      For i = 0 to 299 
       Wscript.Echo i & vbtab & arrHeaders(i) & ": " & objFolder.GetDetailsOf(strFileName, i) 
      Next 
     Next 
    </script> 
</job> 

回答