@echo off rem created by Alex K. Angelopoulos rem April 2001 rem alexangelopoulos@hotmail.com REM Sets the size of the window; rem 0 - 320x240 rem 1 - 512x384 rem 2 - 640x480 rem 3 - 800x600 rem 4 - 1024x768 rem 5 - 1152x864 if {%1} == {-h} goto :HELPTEXT if {%2} == {} ( set width=640 & set height=480 & goto launch )else if {%2} == {0} ( set width=320 & set height=240 & goto launch )else if {%2} == {1} ( set width=512 & set height=384 & goto launch )else if {%2} == {2} ( set width=640 & set height=480 & goto launch )else if {%2} == {3} ( set width=800 & set height=600 & goto launch )else if {%2} == {4} ( set width=1024 & set height=768 & goto launch )else if {%2} == {5} ( set width=1152 & set height=864 & goto launch )else goto HELPTEXT :Launch rem If TSAC is not in your path, uncomment the following rem pushd %PROGRAMFILES%\"Terminal Services Client MSI\System32" start mstsc.exe -v:%1 -w:%width% -h:%height% rem popd goto :EOF :HELPTEXT echo Syntax: %0 ^ [ ^| 0 ^| 1 ^| 2 ^| 3 ^| 4] echo where the integer sets resolution: echo 0 - 320x240 echo 1 - 512x384 echo 2 - 640x480 echo 3 - 800x600 echo 4 - 1024x768 echo 5 - 1152x864 echo echo If no size chosen, defaults to 640x480 :EOF