我运行任何*.exe文件都告诉我指定路径不存在,可文件确实在那个路径!

bybee 2003-11-28 11:33:37
前两天机器中病毒,我把文件放回收站,过了好几天都没事,可今天我把回收站文件删除后就出现这样错误了!我用的是 2000server系统.我删除的那个两个文件名忘了,我记得好像是winnt根目录下的!请帮兄弟一把!!
...全文
6983 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
icuc88 2003-11-28
  • 打赏
  • 举报
回复
FAQ:

http://expert.csdn.net/Expert/FAQ/FAQ_Index.asp?id=180278

进入命令行的安全模式
bybee 2003-11-28
  • 打赏
  • 举报
回复
cmd.exe无法执行怎么进命令提示符窗口!?

jacky130 2003-11-28
  • 打赏
  • 举报
回复
Win2000故障一例:exe文件失效

故障解决

  先在命令行输入:assoc .exe来显示EXE文件关联,系统显示“没有为扩展名.exe找到文件关联”,难怪EXE文件都不能执行。接着输入:ftype | more来分屏显示系统中所有的文件类型,其中有一行显示为“exefile="%1" %*”,难道只要将EXE文件与“exefile”关联,故障就会解决?于是在命令行输入:assoc .exe=exefile(assoc与.exe之间有一空格),屏幕显示“.exe=exefile”。现在关闭命令提示符窗口,按[Ctrl+Alt+Del]组合键调出“Windows安全”窗口,按[关机]按钮后选择“重新启动”选项,按正常模式启动Windows 2000后,所有的EXE文件都能正常运行了。

  几点体会

  事后,笔者重新在控制面板中执行文件夹选项命令,选择“文件类型”标签,发现在“已注册的文件类型”列表中没有EXE,也没有BAT和COM等文件类型,说明用文件夹选项命令无法创建这些类型的文件关联,我们只能在命令提示符窗口中用ASSOC和FTYPE两个命令来设置。
bybee 2003-11-28
  • 打赏
  • 举报
回复
我把exe全关联到cmd上了都能用了!这样 作会有 问题吗 ?
shenshs 2003-11-28
  • 打赏
  • 举报
回复
方法1:
注册表里
[HKEY_CLASSES_ROOT\exefile\shell\open\command]
把里面的Default对应的值改为%1就好。

方法2:
重新启动系统,进入带命令安全模式。
C:\>assoc .exe=exefile

C:\>help assoc
Displays or modifies file extension associations

ASSOC [.ext[=[fileType]]]

.ext Specifies the file extension to associate the file type with fileType Specifies the file type to associate with the file extension

Type ASSOC without parameters to display the current file associations.
If ASSOC is invoked with just a file extension, it displays the current file association for that file extension. Specify nothing for the file type and the command will delete the association for the file extension.

方法3:

选择
HKEY_CLASSES_ROOT/exefile/shell/open/command
HKEY_CLASSES_ROOT/exefile/shell/runas/command
看看默认值是不是"%1"%*,不是,把它改回来。

看看注册表的开始启动菜单,有没有异常服务启动。

regedit.exe改名为regedit.com
ravenkatte 2003-11-28
  • 打赏
  • 举报
回复
http://expert.csdn.net/Expert/FAQ/FAQ_Index.asp?id=180278

6,868

社区成员

发帖
与我相关
我的任务
社区描述
Windows 2016/2012/2008/2003/2000/NT
社区管理员
  • Windows Server社区
  • qishine
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧