BAT

// 获取管理员权限并映射网络驱动器

REM "map network device for compile"
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&
@net use x: /del yes
@net use x: \\serverName\folder
Rem @pause

 

posted @ 2016-07-12 15:29  mymeng_feng  阅读(128)  评论(0编辑  收藏  举报