完全卸载RamDisk

装电脑的时候弄了4GB的内存,毕竟是主流嘛,标准配置,后来闲来无事,就弄了个ramdisk来把内存当硬盘用,用来做IE的缓存,的确是快啊,还有系统的TEMP,TMP都扔里面了,后来用了一段时间,不习惯,想把它卸载了,百度了一下,找到了一个方法,批处理,把一下代码写到记事本,保存为bat后缀的,运行一下就可以了

 

代码如下:

@Echo Off
Echo *******************************************************
Echo *******************************************************
Echo ——————————————————-
Echo RamDisk / RamDisk Plus v8 Uninstall Script
Echo ——————————————————-
Echo *******************************************************
Echo *******************************************************
Echo .
Echo This script will uninstall RamDisk or RamDisk Plus v8.
Echo .
Echo To abort press Ctrl-C. Otherwise,
Pause
rem
echo Deleting system files…
rem
del %systemroot%\system32\drivers\sscrdbus.sys
del %systemroot%\system32\drivers\sscrdfdo.sys
del %systemroot%\system32\rdcfg.exe
del %systemroot%\system32\sscrdcpa.cpl
rem
echo Deleting files in Program Files…
rem
del /s /q “%programfiles%\SuperSpeed Software\*.*”
rmdir /s /q “%programfiles%\SuperSpeed Software”
rem
echo Deleting start menu entries…
rem
del /s /q “%allusersprofile%\Start Menu\Programs\SuperSpeed Software\*.*”
rmdir /s /q “%allusersprofile%\Start Menu\Programs\SuperSpeed Software”
rem
echo Deleting registry Services keys…
rem
reg delete HKLM\System\CurrentControlSet\Services\SscRdBus /f
reg delete HKLM\System\CurrentControlSet\Services\SscRdFdo /f
rem
echo Deleting registry EventLog service keys…
rem
reg delete HKLM\System\CurrentControlSet\Services\EventLog\System\SscRdBus /f
reg delete HKLM\System\CurrentControlSet\Services\EventLog\System\SscRdFdo /f
rem
echo Deleting Uninstall key…
rem
reg delete HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\{5B14E062-97A1-11D3-B2C8-00C0F014C0F2} /f
rem
echo Deleting control panel applet registrations…
rem
reg delete “HKLM\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\RAM Disk Devices” /f
reg delete “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Cpls” /v “RAM Disk Devices” /f
reg delete “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Extended Properties\{305CA226-D286-468e-B848-2B2E8E697B74} 2” /v “%SystemRoot%\System32\SscRdCpa.cpl” /f
rem
rem Inform user
rem
Echo *******************************************************
Echo *******************************************************
Echo ——————————————————-
Echo To complete manual uninstall, please reboot the system.
Echo ——————————————————-
Echo *******************************************************
Echo *******************************************************
Pause

未经允许不得转载:寻找最美图片 » 完全卸载RamDisk
微信公众号:企鹅主机
关注我们,每天分享更多有趣的事儿,有趣有料!
12000人已关注
赞(20) 打赏

发表评论抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

爷,喜欢就赏个三五毛。

支付宝扫一扫打赏

微信扫一扫打赏