Finding Adobe Acrobat Version

  • Thread starter Thread starter Michelle
  • Start date Start date
M

Michelle

How would I go about finding what version of Adobe the user has on their
machine programmatically? I can only get to the Acrobat folder but can't go
any further. There are 2 folders in the Acrobat folder 7.0 and 8.0 which tell
what version of Acrobat is loaded on the system. I have to make sure there is
a Stamps folder in each of these folders(7.0, 8.0)

My code looks like this:

strTempPath = "\Documents and Settings\" & Environ("USERNAME") &
"\Application Data \Adobe\Acrobat\"
strDrive = "D:"
strResult = Dir(strDrive & strTempPath)

Thanks
 
Assuming that the folder 7.0 or 8.0 has at least one file in it, you could
test it using the Dir function

Dim sRoot as String
Dim bV8 as Boolean
sRoot = "....\Adobe\Acrobat\"

bV8 = Iif(Len(Dir(sRoot & "7.0\")) = 0, True, False)


This would tell which version is installed, but may not help to verify the
Stamps folder you are looking for, if there is any chance there are no files
in the stamps folder.

In a worse-case scenario, you could shell a command to cmd.exe to create the
Acrobat\Version\Stamps folder, which would return an error to the cmd window
if it is already there (which your user would never see), or create it if it
is not.

Dim sFullPath
sFullPath = (the full path of the Stamps folder after you get the Version)

Shell "CMD.exe /Q /C MKDIR " & sFullPath


hth
-jack
 
Back
Top