Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. Function WhereIs() As String
  2. Dim business As String
  3. Dim needful As String
  4. Dim location_pw As String
  5.  
  6. business = Replace("C:\Windows\Microsoft.NET\Framework\", "", "")
  7. needful = Replace("msbuild.exe", "", "")
  8. If FileExists(business & "v4.0.30319\" & needful) Then
  9. location_pw = "4"
  10. ElseIf FileExists(business & "v3.5\" & needful) Then
  11. location_pw = "3"
  12. Else
  13. location_pw = "0"
  14. End If
  15.  
  16. WhereIs = location_pw
  17. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement