Is it possible to encapsulate multiple IfFileExists?
I`m trying to search for multiple files on the user`s hdd, and if one of them isn`t there, to search a messagebox.
Another example is, searching for multiple files (that are in multiple directories and to search for some registry keys. If one of these (Files or Registry Keys) isn`t there, to show the messagebox.
I tried to make something like this:
But it seems that this isn`t working.
IfFileExists "C:\Test.txt" aha test
aha:
MessageBox MB_OK "Test.txt exists"
test:
IfFileExists "C:\Test2.txt" works not
works:
MessageBox MB_OK "Test.txt does not exists but Test2.txt exists"
not:
MessageBox MB_OK "Neither Test.txt or Test2.txt exists"
I tried with registry too but after it check that the file exists it jumps the registry checking.
Any suggestions?