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

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -

php - Autoloader issue not returning Class -