image_runtime.dll ScanAdd.dll NComm2.dll rsstub.dll ScanSrv.dll scanpe.dll scantj.dll

在使用电脑系统时经常会出现丢失找不到某些文件的情况,由于很多常用软件都是采用 Microsoft Visual Studio 编写的,所以这类软件的运行需要依赖微软Visual C++运行库,比如像 QQ、迅雷、Adobe 软件等等,如果没有安装VC++运行库或者安装的版本不完整,就可能会导致这些软件启动时报错,提示缺少库文件。

如果我们遇到关于文件在系统使用过程中提示缺少找不到的情况,如果文件是属于运行库文件的可以单独下载文件解决,但还是建议安装完整的运行库,可以尝试采用手动下载替换的方法解决问题!

方法1:使用软件工具免费下载 需要的文件,想要修复丢失文件,那就要下载一个好的文件,并放在指定的文件夹中(程序安装目录或系统目录),就可以解决问题了!

下面我们通过使用一款DLL修复工具免费下载需要的文件

下载地址1 我们可以通过优快云下载https://download.youkuaiyun.com/download/2508_90661607/90392235

下载地址2 直接下载https://download.youkuaiyun.com/download/2508_90661607/90392235

下载安装完成后,打开软件,然后点击界面左侧的“文件下载”,接着在软件界面右侧文本框中输入我们要下载的文件名,然后点击右边的下载按钮。

 



文件下载完成后,下方列表会有很多个不同版本的文件,这里所有文件都是免费可下载的,我们根据自己所需要的版本文件,点击右边的“打开”,这样就找到了下载的文件

x86 表示32位文件:
 



X64 表示64位文件:
 



现在电脑基本上都是64位系统,那就将32位dll文件放到“C:\Windows\SysWOW64”这个文件夹里面
将64位文件,放到“C:\Windows\System32”这个文件夹里面
,如图所示:

 



另外还有一种情况需要注意!
另外还有一种情况需要注意!
另外还有一种情况需要注意!
“C:\Windows\SysWOW64” 有这个dll,但是“C:\Windows\System32” 没有
这个时候也需要把64位dll复制到“C:\Windows\System32”
确实有人遇到这种情况:

 



以上只是通用的运行库dll处理方式,如果你遇到缺失文件是第三方的软件文件,那么就需要下载到属于这个程序所匹配的版本的文件,然后将这个文件复制到这个程序的安装目录下才能解决问题。​

解析以下代码:“def copyfiles(run, mode, prof, copybase=True, alarm=True): """Copy datas from profile into `pwd` (if mode=='DATA') or results from `pwd` into destination given by profile (if mode=='RESU'). Aster bases are copied only if copybase is True. Raise only <E> if an error occurs run CheckOK() after. """ if mode == 'DATA': l_dico = prof.data icomm = 0 ncomm = len(prof.Get('D', 'comm')) for df in l_dico: icomm = copyfileD(run, df, icomm, ncomm) else: l_dico = prof.resu for df in l_dico: copyfileR(run, df, copybase, alarm) def copyfileD(run, df, icomm, ncomm): """Copy datas from `df` into current directory. Raise only <E> if an error occurs run CheckOK() after. """ dest = None # 1. ----- if logical unit is set : fort.* if df['ul'] != 0 or df['type'] in ('nom',): dest = 'fort.%d' % df['ul'] if df['type'] == 'nom': dest = osp.basename(df['path']) # exception for multiple command files (adding _N) if df['ul'] == 1: icomm += 1 format = '%%0%dd' % (int(log10(max(1, ncomm))) + 1) dest = dest + '.' + format % icomm # warning if file already exists if run.Exists(dest): run.Mess(ufmt(_("'%s' overwrites '%s'"), df['path'], dest), '<A>_COPY_DATA') if df['compr']: dest = dest + '.gz' # 2. ----- bases and directories (ul=0) else: # base if df['type'] in ('base', 'bhdf'): dest = osp.basename(df['path']) # ensi elif df['type'] == 'ensi': dest = 'DONNEES_ENSIGHT' # repe elif df['type'] == 'repe': dest = 'REPE_IN' if dest is not None: # 3. --- copy kret = run.Copy(dest, df['path'], niverr='<E>_COPY_ERROR', verbose=True) # 4. --- decompression if kret == 0 and df['compr']: kret, dest = run.Gunzip(dest, niverr='<E>_DECOMPRESSION', verbose=True) # 5. --- move the bases in main directory if df['type'] in ('base', 'bhdf'): for f in glob(osp.join(dest, '*')): run.Rename(f, osp.basename(f)) # force the file to be writable make_writable(dest) # clean text files if necessary if df['ul'] != 0 and run.IsTextFileWithCR(dest): file_cleanCR(dest) print(ufmt(' ` ' + _('line terminators have been removed from %s'), dest)) return icomm def copyfileR(run, df, copybase=True, alarm=True): """Copy results from current directory into destination given by `df`. Aster bases are copied only if copybase is True. Raise only <E> if an error occurs run CheckOK() after. """ # list of files lf = [] isdir = False # 1. ----- files if df['ul'] != 0 or df['type'] in ('nom', ): # if logical unit is set : fort.* if df['ul'] != 0: lf.append('fort.%d' % df['ul']) elif df['type'] == 'nom': lf.append(osp.basename(df['path'])) # 2. ----- bases and directories (ul=0) else: isdir = True # base if df['type'] == 'base' and copybase: lf.extend(glob('glob.*')) lf.extend(glob('pick.*')) # bhdf elif df['type'] == 'bhdf' and copybase: lbas = glob('bhdf.*') if len(lbas) == 0: if alarm: run.Mess(_("No 'bhdf' found, saving 'glob' instead"), '<A>_COPY_BASE') lbas = glob('glob.*') lf.extend(lbas) lf.extend(glob('pick.*')) # repe elif df['type'] == 'repe': rep = 'REPE_OUT' if os.name=='nt': lfrep = [rep] else: lfrep = glob(osp.join(rep, '*')) if len(lfrep) == 0 and alarm: run.Mess(ufmt(_("%s directory is empty !"), rep), '<A>_COPY_REPE') lf.extend(lfrep) # 3. ----- compression kret = 0 if df['compr']: lfnam = lf[:] lf = [] for fnam in lfnam: kret, f = run.Gzip(fnam, niverr='<E>_COMPRES_ERROR', verbose=True) if kret == 0: lf.append(f) else: lf.append(fnam) run.Mess(_("Warning: The uncompressed file will be returned " "without changing the target filename\n(eventually " "ending with '.gz' even if it is not compressed; " "you may have to rename it before use)."), '<A>_COPYFILE') # 4. ----- copy if len(lf) > 0: # create destination if isdir: kret = run.MkDir(df['path'], '<E>_MKDIR_ERROR') else: if len(lf) > 1: run.Mess(ufmt(_("""Only the first one of [%s] is copied."""), ', '.join(lf)), '<A>_COPYFILE') lf = [lf[0],] kret = run.MkDir(osp.dirname(df['path']), '<E>_MKDIR_ERROR') # copy if kret == 0: lfc = lf[:] for fname in lfc: if not osp.exists(fname): if alarm: run.Mess(ufmt("no such file or directory: %s", fname), '<A>_COPYFILE') lf.remove(fname) if len(lf) > 0: kret = run.Copy(df['path'], niverr='<E>_COPY_ERROR', verbose=True, *lf) # save base if failure if kret != 0: rescue = get_tmpname(run, basename='save_results') run.Mess(ufmt(_("Saving results in a temporary directory (%s)."), rescue), '<A>_COPY_RESULTS', store=True) kret = run.MkDir(rescue, chmod=0o700) kret = run.Copy(rescue, niverr='<E>_COPY_ERROR', verbose=True, *lf) ”
07-11
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值