0

I have an application, user can install it on any folder in his/her computer how can I find my application on his computer(where it is installed and launch it)

Dim path
path = "path/to/myApplication.exe" 'path to myApplication is unknown I need to find it
Shell """" & path & """", vbNormalFocus

Is there any easy way I can find where user has installed my application on his computer, in windows

Fahad
  • 346
  • 2
  • 16

1 Answers1

1

This SO Article offers a great solution to your problem.

You can always iterate recursively through the file system, but there are obvious downsides to this method (time, permissions, networks etc.).

  • 1
    thanks david, I used [.Run](https://ss64.com/vb/run.html) command to hide the cmd window, thanks to https://stackoverflow.com/a/32298415/4233036 – Fahad Aug 02 '17 at 12:41