Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to run a batch file automatically after logging in via telnet

Status
Not open for further replies.

Damien111

IS-IT--Management
Nov 29, 2002
54
0
0
US
Is there a way to run a batch file automatically after loging in with telnet? So basically the person would telnet to the 2000 server, logon, and once authenticated a batch file would run?


Thanks,

Jeff, MCP
 
How do I execute a batch file when a user logs on?

Answer: You can assign a log on batch file for users using one of the following methods. Select only one choice. Errors could occur if the batch file is assigned in multiple locations.

Option 1) Setup the batch file using Windows User Management program.

Option 2) Enter your batch file in the Startup Program edit box under the Full Console Settings or Stream Settings tab, depending on the console mode. The location of this box depends on the version of TelnetServer. Check your index for these box locations. If cmd.exe or command.com is the User Shell then add a /K or /C after the program name in the User Shell edit box. A /K will return to the command prompt after running the batch file, whereas a /C will close the session after completion.




Joseph L. Poandl
MCSE 2003

If your company is in need of experts to examine technical problems/solutions, please check out (Sales@njcomputernetworks.com)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top