Hi,
Is it possible to open a file not knowing the exact name, but knowing a part of the name?
Run file
Re: Run file
Loop, Files allows to use basic matchpatterns (* and ?).
If you find something, you will have to decide if you want to use the first match, or determine a best match (on some criteria you have in mind).
A "fuzzy search" would be more complicated I guess.
If you find something, you will have to decide if you want to use the first match, or determine a best match (on some criteria you have in mind).
A "fuzzy search" would be more complicated I guess.
Re: Run file
I've read the guide but can't figure out how to achieve my goal, I'm new to AHK.
Could you give me a code example that launches the first file it finds that contains the string "capital2" in the name?
Could you give me a code example that launches the first file it finds that contains the string "capital2" in the name?
Re: Run file
Code: Select all
loop, Files, C:\Temp\*capital2* ; put the actual path to your folder
{
Run, % A_LoopFileFullPath
break ; stops after first one
}
Re: Run file
Thanks
Who is online
Users browsing this forum: Anput, Google [Bot], jameswrightesq and 289 guests