SDC C-Project CF Review 프로그램
LYW
2021-11-09 9ad2aa59da822e9d30c5e0cd677025fe6e12df95
ReviewSystem/ReviewSystem/MainFrm.cpp
@@ -41,6 +41,8 @@
   ID_INDICATOR_SCRL,
};
// 정의
// CMainFrame 생성/소멸
CMainFrame::CMainFrame()
@@ -68,6 +70,8 @@
   if (CFrameWndEx::OnCreate(lpCreateStruct) == -1)
      return -1;
   SetUnhandledExceptionFilter(TopLevelExceptionFilterCallBack);
   ModifyStyle(WS_CAPTION, NULL);
   SetMenu(NULL);
@@ -84,11 +88,15 @@
   SetTimer(ID_TIMER_SEND_SIGNAL_ALIVE, 100, NULL);
   system("net use Y: \\\\126.100.100.1\\d\\DIT_ResultData pw:dit/user:Server/persistent:yes");
   //LYW Align Reconnect
   //system("netsh interface set interface name = \"Align #1\" admin = disable&& netsh interface set interface name = \"Align #1\" admin = enable&& netsh interface set interface name = \"Align #2\" admin = disable&& netsh interface set interface name = \"Align #2\" admin = enable");
   //Sleep(2000);
   //업데이트시
   system("netsh interface set interface name = \"Align #1\" admin = disable"
      "&& netsh interface set interface name = \"Align #1\" admin = enable"
      "&& netsh interface set interface name = \"Align #2\" admin = disable"
      "&& netsh interface set interface name = \"Align #2\" admin = enable"
      "&& net use Y : \\\\126.100.100.1\\d\\DIT_ResultData pw : dit / user : Server / persistent : yes");
   Sleep(2000);
//   SetTimer(ID_TIMER_WSI_LONGRUN_TEST_TIME, 10000, NULL);
@@ -446,9 +454,9 @@
#define strScript "RESTART^AFControl.exe^C:\\AFControl\\program\\AFControl.exe"
   
   CFile file;
   if( FALSE == file.Open(_T("C:\\DIT_Review\\MakeScript.TSF"),CFile::modeCreate | CFile::modeWrite) )
   if( FALSE == file.Open(_T("D:\\DIT_Review\\MakeScript.TSF"),CFile::modeCreate | CFile::modeWrite) ) //210805
   {
      g_pLog->DisplayMessage(_T("File[C:\\DIT_Review\\MakeScript.TSF] Create Fail!!"));
      g_pLog->DisplayMessage(_T("File[D:\\DIT_Review\\MakeScript.TSF] Create Fail!!")); //210805
      return;
   }
@@ -480,7 +488,7 @@
   CString strTarget;
   strTarget.Format(_T("\\\\126.100.100.220\\c\\RemoteTaskMgr\\T\\CopyScript.TSF"));
   
   BOOL bRet = CopyFile(_T("C:\\DIT_Review\\MakeScript.TSF"),strTarget,FALSE);
   BOOL bRet = CopyFile(_T("D:\\DIT_Review\\MakeScript.TSF"),strTarget,FALSE); //210805
   if(bRet == FALSE)
      g_pLog->DisplayMessage(_T("[%s]Send Script Fail!"), strTarget);
   /////////////////////////////////////
@@ -939,4 +947,5 @@
      return TRUE;
   }
   return FALSE;
}
}