cmd命令

来源:互联网 发布:php网页源代码加密 编辑:程序博客网 时间:2024/06/09 22:11

如何copy东西到多台远程机器上:

假定用户名和密码均相同

set ip=xxx.xxx.xxx.101 ^xxx.xxx.xxx.102 ^xxx.xxx.xxx.103 ^xxx.xxx.xxx.104 ^xxx.xxx.xxx.105 ^xxx.xxx.xxx.106for %%i in (%ip%) do (net use \\%%i\c$ Passw0rd /user:Administratorxcopy C:\\upload \\%%i\c$\  /y)pause

查询注册表sLanguage信息:

for /f "skip=1 tokens=3" %i in ('reg query "HKCU\Control Panel\International" /v "sLanguage"') do @echo %i  


0 0
原创粉丝点击