2012-01-25 58 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