欢迎来到天天文库
浏览记录
ID:57748707
大小:13.00 KB
页数:1页
时间:2020-09-02
《在右键新建菜单中加入新建bat.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、@echoofftitle在右键新建菜单中加入新建BAT-ByBaili.echo在右键新建菜单中加入新建BAT-ByBaili.echo================================rem检测管理员权限echo正在阅读系统权限...setAdmin_Path=%windir%BailisetAdmin_FileName=admin_%Random%.testremecho%Admin_Path%%Admin_FileName%ifexist%Admin_Path%%Admin_FileName%(del/f/q%Admin_Path%%Ad
2、min_FileName%ifexist%Admin_Path%%Admin_FileName%(gotoadmin)else(gotonext))else((md%Admin_Path%)1>nul2>nulechoAreUAdmin?>%Admin_Path%%Admin_FileName%ifexist%Admin_Path%%Admin_FileName%(del/f/q%Admin_Path%%Admin_FileName%gotonext)else(gotoadmin)):adminecho请以管理员权限重试.pause&exit:nextecho
3、正在创建样本文件...setSampleFilePath=C:WindowsShellNewNewBAT.batecho@echooff>%SampleFilePath%echosettitle_=新建工程>>%SampleFilePath%echotitle%%title_%%>>%SampleFilePath%echoecho%%title_%%>>%SampleFilePath%echoecho=====================================>>%SampleFilePath%echo.>>%SampleFilePath%echo
4、.>>%SampleFilePath%echo.>>%SampleFilePath%echo.>>%SampleFilePath%echo.>>%SampleFilePath%echopause>>%SampleFilePath%echoexit>>%SampleFilePath%echo正在创建系统注册项...regaddHKCR.batShellNew/tREG_SZ/vFileName/dC:WindowsShellNewNewBAT.bat/fpause&exit
此文档下载收益归作者所有