public static int CheckFileExistsLOCALNETWORK(string fileName, string location, string extension, string host, string username, string password)
        {
            int Count = 0;
            var path  = GetFileNameAndExt(fileName).FirstOrDefault();
            var ext   = path.Key;
            var fn    = path.Value;

            try
            {
                if (string.IsNullOrEmpty(ext))
                {
                    ext = GetFileExtensions().FirstOrDefault(f => f.Key == extension).Value;
                }
                var files = ImpersonationHelper.checkLocalNetworkFile(username, password, @"\\" + host + location);
                Count = files.Where(x => x.Contains(fn) && ext.ToLower() == Path.GetExtension(x).ToLower()).Count();
                return(Count);
            }
            catch (Exception ex)
            {
                return(0);
            }
        }