#include<stdio.h>
#include<stdlib.h>
#include<string.h>

int main(void)
{
 
 const char * stt={"장소1"};
 char stl[100];
 char cmd[256];

 printf("접속하고 싶은 장비명 or host:");
 scanf_s("%s", stl,100);

 if(strcmp(stl,stt) == 0){
  printf("접속:");
 
 sprintf_s(cmd,"C:/windows/sysnative/telnet.exe 192.168.10.1 23");
 system(cmd);
 }

 return 0;
}

 이렇게 해서 장비 접속 하잖아요??

접속한후에 장비 콘솔 모드에서 자동으로 텍스트 쳐지게 할려면 어떻게 해야되요??