Shell - How do i know what version of Adobe the user has?

I have this piece of code but the problem is I can’t determine what version of Adobe the user has. I have tried many different things but can’t find anything on how to determine WHICH Adobe version and product they are using. Any help would be GREAT! Thank you in advance…

If(FileExists = “False”)Then

			Messagebox "The " & att.Source & " file does not exist"

			Exit Sub

		Else

			what_to_run = "C:\Program Files\Adobe\Acrobat 7.0\Acrobat\Acrobat.exe"

			taskid% = Shell(what_to_run & " /p" & 	filepath$)

			thetask% = Shellid(what_to_run)

			Msgbox "running it with 7.0"

		End If

	End If

Subject: shell - How do i know what version of Adobe the user has?

I actually found another example in this forum and modified a little and now am using this and it is working great. Hope this helps someone else! :slight_smile:

On Error Resume Next

			what_to_run = "C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe " 

			taskid% = Shell(what_to_run & " /p" & 	filepath$)

			If Not(taskid% <> 33) Then

				thetask% = Shellid(what_to_run)

				Msgbox "running it with C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe "

			End If

			

			what_to_run = "C:\Program Files\Adobe\Acrobat 6.0\Reader\AcroRd32.exe "

			taskid% = Shell(what_to_run & " /p" & 	filepath$)

			If Not(taskid% <> 33) Then

				thetask% = Shellid(what_to_run)

				Msgbox "running it with C:\Program Files\Adobe\Acrobat 6.0\Reader\AcroRd32.exe "

			End If 

			

			what_to_run =  "C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe "

			taskid% = Shell(what_to_run & " /p" & 	filepath$)

			If Not(taskid% <> 33) Then

				thetask% = Shellid(what_to_run)

				Msgbox "running it with C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe "

			End If

			

			what_to_run = "C:\Program Files\Adobe\Acrobat 7.0\Acrobat\Acrobat.exe"

			taskid% = Shell(what_to_run & " /p" & 	filepath$)

			If Not(taskid% <> 33) Then

				thetask% = Shellid(what_to_run)

				Msgbox "running it with C:\Program Files\Adobe\Acrobat 7.0\Acrobat\Acrobat.exe"

			End If

			

			If (taskid% <> 33) Then

				Messagebox "Sorry, couldn't find a version of Acrobat Reader on your computer",,"Unable to launch"

			End If

			

			'end here