Considering that your fileInfo.PhysicalPath; has backslashes, you would have to escape them fileInfo.PhysicalPath.Replace(@"\", @"\\")
. You should now be able to access this in your Javascript code as @Html.Raw(Json.Serialize(@filePath)) or just plain '@filePath'.