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?
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.