2012-01-25 79 views
-1

我需要登录到多个Windows服务器。任何人都可以发帖给我一个Windows bat文件样本用于远程登录,而不是调用mstsc并输入用户名和密码?mstsc的BAT文件

回答

0

在问这个问题之前,你甚至试图寻找答案吗?我已经知道我的问题的答案。

我做了MSTSC命令行选项

在谷歌搜索,并想出了Use command line parameters with Remote Desktop Connection

+0

对不起,我从http://www.windowsnetworking.com/articles_tutorials/Configuring-Windows-Remote-Desktop-command-line.html得到了答案,我发布了这个qn ..谢谢 – user1169877

0

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

@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> 
0

输入以下成批处理文件。 经过测试,适用于Windows 7

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

E.g. mstsc.exe /v:192.168.1.2