Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies To: Windows 7, Windows 8, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Vista
Using Login.cmd
The Login.cmd file is run whenever someone logs on to Telnet Server. You can edit the Login.cmd file to change the text that appears when someone logs on, and you can use Login.cmd to run other programs.
When Telnet Server is installed, the Login.cmd file is copied to %SystemRoot%\system32\. By default, this is what its text looks like:
@echo off
echo *====================================================
echo Welcome to Microsoft Telnet Server.
echo *===============================================
cd /d %HOMEDRIVE%\%HOMEPATH%
In the following example, the file has been edited to display the text "Welcome to my Telnet server," and run net config to display information about the server configuration:
@echo off
echo *================================================
echo Welcome to my Telnet server
echo *================================================
cd /d %HOMEDRIVE%\%HOMEPATH%
net config server
See Also
Concepts
Display Information About Current Telnet Sessions
Send a Message to a Telnet Session
Disconnect a Telnet Session