You could use the entire path of the file within the formula

Like for example

=SUMIF('G:\ExcelFox\[Name of the workbook.xlsx]NameOfSheet'!C6:C14,"FOX",'G:\ExcelFox\[Name of the workbook.xlsx]NameOfSheet'!B6:B14)