|
我写了一个批处理,想删除一些文件和目录,及注册表,但在有些机子上可以,有些机子上却不行?请各位大侠帮我看一下?
代码如下:
@echo off
%systemdrive%
if exist "%systemdrive%\program files\StarSoftComm" goto d
:next1
if exist "%systemdrive%\windows\system32\sscfs.sys" goto a
:next2
if exist "%systemdrive%\windows\system32\sscmon.sys" goto b
goto next3
:d
rd /s /q "%systemdrive%\program files\StarSoftComm"
goto next1
:a
del "%systemdrive%\windows\system32\sscfs.sys"
goto next2
:b
del "%systemdrive%\windows\system32\sscmon.sys"
:next3
reg delete HKLM\software\StarSoftComm /f
reg delete hklm\software\Microsoft\Windows\CurrentVersion\Uninstall\{E5717166-02EB-4C11-A3B9-C04E1DC475EE} /f
rd /s /q %1
@echo on |
|