vba - Visual Basic - Getting basic information about another program -


alright, working on updater updating several files such executable , drivers. don't want replace every single file every time push update , rather replace file getting updated. easy way reading version of program don't know how read required information. went through io.file didn't find useful.

try looping through folder's files.

option explicit  sub macro1()  dim varfile variant dim integer dim objshell dim objdir  set objshell = createobject("shell.application") set objdir = objshell.namespace("c:\directory_of_files_here\")  each varfile in objdir.items    debug.print objdir.getdetailsof(varfile, 156) ' 156 = file version next  ' use see numbers of attributes, e.g. 156 = file version 'for = 0 300 '   debug.print i, objdir.getdetailsof(objdir.items, i) 'next  end sub 

Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -