Hi, my end goal is to run a program like this
Code: Select all
Run, "C:\Program Files\VEGAS\VEGAS Pro 20.0\vegas200.exe"
I'm just wondering if there are ways to take it a step further where I can search within a specific drive, say like C drive. Assuming this vegas200.exe file is located somewhere in C drive, and you want to launch that program. I've went through some post on the forum, and it seems like they require the folder window to be active to do the search, is there a way to search for a specific .exe file and run it without requiring a window to be active? Thanks!
My inital idea looks something like this:
Code: Select all
; define a function that return a path to the file
FilePathFinder(file_name, extension, search_from_path) {
}
; then the function can be used like so:
VegasPath := FilePathFinder(vegas200, exe, "C:\")
Run, VegasPath
This code is intended so if I do move the file to another place, I wouldn't need to modify my autohotkey code every time which is super annoying. Any ideas would be greatly appreciated!