下面几个bat文件示例,希望对你有点用处,根据需要自己修改一下再使用。
删除默认共享(别存为bat文件放在开始菜单中):net_share_delete.bat,
net share c$ /delete
net share d$ /delete
net share e$ /delete
...
登陆到局域网的机器快捷方式(对方机器有密码且为2000或以上系统)
nethood.bat
net use \\192.168.0.20 [密码] /user:[用户名] explorer \\192.168.0.20
net use \\192.168.0.20 [密码] /user:[用户名] explorer \\192.168.0.20
批处理中的循环newfolder.bat
@ECHO OFF SET /A counter=0 :top SET /A counter=%counter%+1 ECHO 运行第 %counter% 次 md folder%counter% if %counter% LSS 10 GOTO :top ECHO Run complete
删除临时文件夹中的文件(window 2000或以上操作系统) del_tempfile.bat
cd /d %temp% del *.* /s /q
解决IE无法在新窗口中打开链接的问题,关闭所有的ie窗口,运行下面内容的bat iedll.bat
Regsvr32 urlmon.dll Regsvr32 actxprxy.dll Regsvr32 shdocvw.dll Regsvr32 oleaut32.dll
重命名从IE临时文件夹中拷贝的文件 renameIEtempfile.bat(从Temporary Internet Files复制过来的文件都会在文件名上加上[1]或者[n],用此bat文件可以很快的给他们改名)
rename ?[1].* ?.*
rename ??[1].* ??.*
rename ???[1].* ???.*
rename ????[1].* ????.*
rename ?????[1].* ?????.*
rename ??????[1].* ??????.*
rename ???????[1].* ???????.*
rename ????????[1].* ????????.*
rename ?????????[1].* ?????????.*
rename ??????????[1].* ??????????.*
rename ???????????[1].* ???????????.*
rename ????????????[1].* ????????????.*
rename ?????????????[1].* ?????????????.*
rename ??????????????[1].* ??????????????.*
rename ???????????????[1].* ???????????????.*
rename ????????????????[1].* ????????????????.*
rename ?????????????????[1].* ?????????????????.*
rename ??????????????????[1].* ??????????????????.*
rename ???????????????????[1].* ???????????????????.*
rename ????????????????????[1].* ????????????????????.*
rename ?????????????????????[1].* ?????????????????????.*
rename ??????????????????????[1].* ??????????????????????.*
rename ???????????????????????[1].* ???????????????????????.*
rename ????????????????????????[1].* ????????????????????????.*
rename ?????????????????????????[1].* ?????????????????????????.* rename ??????????????????????????[1].* ??????????????????????????.* rename ???????????????????????????[1].* ???????????????????????????.* rename ????????????????????????????[1].* ????????????????????????????.* rename ?????????????????????????????[1].* ?????????????????????????????.* rename ??????????????????????????????[1].* ??????????????????????????????.* rename ???????????????????????????????[1].* ???????????????????????????????.* rename ????????????????????????????????[1].* ????????????????????????????????.* rename ?????????????????????????????????[1].* ?????????????????????????????????.* rename ??????????????????????????????????[1].* ??????????????????????????????????.* rename ???????????????????????????????????[1].* ???????????????????????????????????.*
rename ??[1].* ??.*
rename ???[1].* ???.*
rename ????[1].* ????.*
rename ?????[1].* ?????.*
rename ??????[1].* ??????.*
rename ???????[1].* ???????.*
rename ????????[1].* ????????.*
rename ?????????[1].* ?????????.*
rename ??????????[1].* ??????????.*
rename ???????????[1].* ???????????.*
rename ????????????[1].* ????????????.*
rename ?????????????[1].* ?????????????.*
rename ??????????????[1].* ??????????????.*
rename ???????????????[1].* ???????????????.*
rename ????????????????[1].* ????????????????.*
rename ?????????????????[1].* ?????????????????.*
rename ??????????????????[1].* ??????????????????.*
rename ???????????????????[1].* ???????????????????.*
rename ????????????????????[1].* ????????????????????.*
rename ?????????????????????[1].* ?????????????????????.*
rename ??????????????????????[1].* ??????????????????????.*
rename ???????????????????????[1].* ???????????????????????.*
rename ????????????????????????[1].* ????????????????????????.*
rename ?????????????????????????[1].* ?????????????????????????.* rename ??????????????????????????[1].* ??????????????????????????.* rename ???????????????????????????[1].* ???????????????????????????.* rename ????????????????????????????[1].* ????????????????????????????.* rename ?????????????????????????????[1].* ?????????????????????????????.* rename ??????????????????????????????[1].* ??????????????????????????????.* rename ???????????????????????????????[1].* ???????????????????????????????.* rename ????????????????????????????????[1].* ????????????????????????????????.* rename ?????????????????????????????????[1].* ?????????????????????????????????.* rename ??????????????????????????????????[1].* ??????????????????????????????????.* rename ???????????????????????????????????[1].* ???????????????????????????????????.*