BAT脚本添加自动代理脚本并更改用户文档位置
2013-09-12 16:21
423 查看
@echo off reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL /t REG_SZ /d "http://192.168.10.1:8086/proxy.pac" /f if %username% == newuser ( exit ) else ( net use z: \\192.168.10.22\iedownload\%username% ping 127.0.0.1 -n 2 -w 1000 > nul if not exist Z:\ ( reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Desktop /t REG_EXPAND_SZ /d "%USERPROFILE%\桌面" /f reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Personal /t REG_EXPAND_SZ /d "%USERPROFILE%\My Documents" /f ) else ( reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Desktop /t REG_EXPAND_SZ /d "Z:\桌面" /f reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Personal /t REG_EXPAND_SZ /d "Z:\我的文档" /f ) ) exit
Snapshot 自动备份
snapshot D: \\192.168.100.24\share\D\131015_Full_Bak.sna --exclude:"\Share\multimedia source" -L2048 snapshot D: \\192.168.100.24\share\D\$DISK-$DATE.sna -h\\192.168.100.24\share\D\131015_Full_Bak.hsh
相关文章推荐
- win7 更改IP 脚本(自动获取和手动设置多个IP),将里面内容拷贝到记事本另存为set_win7_IP.bat
- 锁定用户代理服务器选项以及自动配置脚本方法
- 添加打印机连接脚本 用户双击即可自动添加打印机。VBS
- OSX脚本:禁止系统自动添加AppStore图标到用户Dock上
- 更改IP 脚本(自动获取和手动设置多个IP),将内容拷贝到记事本另存为bat批处理文件
- 自动添加VSFTP服务器虚拟用户脚本
- OSX脚本:禁止系统自动添加AppStore图标到用户Dock上
- Eclipse添加builder自动执行bat复制脚本
- 打开Excel文档自动启动用户窗体。为Excel文档添加启动画面
- Eclipse添加builder自动执行bat复制脚本
- CVS添加用户时不太方便,我写了个自动脚本,源码如下
- Internet Explorer® 8 之后,您可使用自动代理和自动检测功能,全局更改一些浏览器设置,而无需更改每个用户的计算机
- Shell脚本进阶篇——编写自动判断自动创建添加用户和用户密码的脚本
- 普通用户利用脚本及runas自动更改IP(无需输入密码)
- shell 脚本实战笔记(9)--linux自动批量添加用户
- 用shell脚本为ubuntu自动添加用户,并限定通过ssh连接该用户只能执行特定某个(或某几个)程序
- Eclipse添加builder自动执行bat复制脚本
- 一键自动更改本机IP地址BAT执行脚本 非常好用
- 普通用户利用脚本及runas自动更改IP
- 自动切换IE代理设置: 简单使用IE自动配置脚本