@echo 防右键有自动播放
choice /c:mje md,jixu,end
if errorlevel 3 goto md
if errorlevel 2 goto jixu
if errorlevel 1 goto end
:md
md d:\autorun.inf
attrib D:\autorun.inf +s +r +h
md d:\sxs.exe
attrib d:\sxs.exe +s +r +h
md e:\autorun.inf
attrib e:\autorun.inf +s +r +h
md e:\sxs.exe
attrib e:\sxs.exe +s +r +h
md f:\autorun.inf
attrib f:\autorun.inf +s +r +h
md f:\sxs.exe
attrib f:\sxs.exe +s +r +h
md g:\autorun.inf
attrib g:\autorun.inf +s +r +h
md g:\sxs.exe
attrib g:\sxs.exe +s +r +h
md h:\autorun.inf
attrib h:\autorun.inf +s +r +h
md h:\sxs.exe
attrib h:\sxs.exe +s +r +h
:jixu
call 1.bat
:end
echo baibai~~
exit
choice在sp2不能用么? 还有 如果想定义一个变量 可以自动查出有几个盘 加几个盘的autorun.ini sxs.exe 该怎么办呢
新手 菜鸟 看着教学贴编的 不要扔鸡蛋
choice /c:mje md,jixu,end
if errorlevel 3 goto md
if errorlevel 2 goto jixu
if errorlevel 1 goto end
:md
md d:\autorun.inf
attrib D:\autorun.inf +s +r +h
md d:\sxs.exe
attrib d:\sxs.exe +s +r +h
md e:\autorun.inf
attrib e:\autorun.inf +s +r +h
md e:\sxs.exe
attrib e:\sxs.exe +s +r +h
md f:\autorun.inf
attrib f:\autorun.inf +s +r +h
md f:\sxs.exe
attrib f:\sxs.exe +s +r +h
md g:\autorun.inf
attrib g:\autorun.inf +s +r +h
md g:\sxs.exe
attrib g:\sxs.exe +s +r +h
md h:\autorun.inf
attrib h:\autorun.inf +s +r +h
md h:\sxs.exe
attrib h:\sxs.exe +s +r +h
:jixu
call 1.bat
:end
echo baibai~~
exit
choice在sp2不能用么? 还有 如果想定义一个变量 可以自动查出有几个盘 加几个盘的autorun.ini sxs.exe 该怎么办呢
新手 菜鸟 看着教学贴编的 不要扔鸡蛋
