Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Batch file mstsc的BAT文件_Batch File_Mstsc - Fatal编程技术网

Batch file mstsc的BAT文件

Batch file mstsc的BAT文件,batch-file,mstsc,Batch File,Mstsc,我需要登录到多个windows服务器。有人能给我发一个Windows bat文件示例,让我远程登录,而不是调用mstsc并键入用户id和密码吗?在问问题之前,你有没有尝试过寻找答案?我已经知道我问题的答案了 我在谷歌上搜索了mstsc命令行选项 然后想出了试试这个,把它放在一个批处理文件中: @echo off title Connect to server . . . . set /p SERVER=Please enter the server name: title Connecting

我需要登录到多个windows服务器。有人能给我发一个Windows bat文件示例,让我远程登录,而不是调用mstsc并键入用户id和密码吗?

在问问题之前,你有没有尝试过寻找答案?我已经知道我问题的答案了

我在谷歌上搜索了mstsc命令行选项


然后想出了

试试这个,把它放在一个批处理文件中:

@echo off
title Connect to server . . . .
set /p SERVER=Please enter the server name: 
title Connecting to server %SERVER%
mstsc.exe /v: <Your server name:port>
@echo关闭
标题连接到服务器。
set/p SERVER=请输入服务器名称:
连接到服务器%server%的标题
mstsc.exe/v:

将以下内容输入到批处理文件中。 经过测试,适用于Windows 7

mstsc.exe /v:(IP-Address-of-Server)
例如:
mstsc.exe/v:192.168.1.2

对不起,我在发布此qn后得到了答案。。最新文件: