Hi friends, I wrote a script to give the path of given file name.Here is my script $drives=DriveGetDrive("all")
For $i = 1 to $drives[0]
FileChangeDir($drives[$i])
$search=FileFindFirstFile("firefox.exe")
if $search =-1 Then
ContinueLoop
Else
$path=FileFindNextFile($search)
ExitLoop
EndIf
Next
MsgBox(0,"File path is",$path).But instead of returning file path,it returns file name.Whats wrong with my code.