Hi, been searching around, and many asked a similar question, tried some solutions on my problem, but couldn't do it.
Problem is, got a path, and want the script to search for a file (prefs.js) in a folder, but one of the folders change it's name every now and then,
well, i do, and don't want to change the script every time, so i thought someone could help me out.
Path is: Drive\PROGS\01 INSTALL\**VariableFolderName**\Profiles\Profiles\default.default\prefs.js
FileFindFirstFile doesn't support wilcards on the path, only the file, meaning im stuck.
$aArray = DriveGetDrive('FIXED')
If @error Then
MsgBox(4096, "DriveGetDrive", "It appears an error occurred.")
Else
For $i = 1 To $aArray[0]
FileFindFirstFile($aArray[$i] & '\PROGS\01 INSTALL\'& * &'\Profiles\Profiles\default.default\prefs.js')
If FileExists($aArray[$i] & '\PROGS\01 INSTALL\'& * &'\Profiles\Profiles\default.default\prefs.js') Then
Else
MsgBox(0, "Error", "No files/directories matched the search pattern")
EndIf
Next
EndIf