Just thought I would share a bat file for use with the XP Client
http://www.microsoft.com/windowsxp/pro/downloads/rdclientdl.asp

simple but effective for me who likes the command line

mstsc.exe /? for all options

usage: ts <servername> <other command line options>

ts.bat contents

@ECHO OFF
ping -n 1 %1 | find "Reply" && GOTO UP 
ping -n 1 %1 | find "Request" && GOTO END
ping -n 1 %1 | find "Bad" && GOTO END
:UP 
for /f "tokens=2 delims=[]" %%i in ('ping %1') do set machineip=%%i
if exist c:\WINNT\System32\mstsc.exe start c:\WINNT\System32\mstsc.exe
/v:%machineip% /f %2 %3 %4 %5 %6 %7 %8
if exist d:\WINNT\System32\mstsc.exe start d:\WINNT\System32\mstsc.exe
/v:%machineip% /f %2 %3 %4 %5 %6 %7 %8
if exist e:\WINNT\System32\mstsc.exe start e:\WINNT\System32\mstsc.exe
/v:%machineip% /f %2 %3 %4 %5 %6 %7 %8
:END


**********************************************************************
This email is not an official statement of the Waikato
Regional Council unless otherwise stated.
Visit our website http://www.ew.govt.nz
**********************************************************************


------
You are subscribed as [email protected]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to