nology @ blog

블로그 이미지
페르소나persona~~♪♬
by nology
  • 423,265Total hit
  • 19Today hit
  • 53Yesterday hit

'DOS'에 해당되는 글 1건

  1. 2007/07/03
    CTime, xcopy

     char* source = "\"Y:\\Flow_data\\.............\"";
     char* target = "\"D:\\_project\\_NG-MON\\traffic_analysis...................\"";
     char order[512];

     sprintf(order, "xcopy %s %s /h", source, target);
     system(order);

..
   SYSTEMTIME c;
   CString str;
   GetLocalTime(&c);  
   str.Format(_T("%04d/%02d/%02d/%2d:%02d:%02d%02d"),c.wYear, c.wMonth, c.wDay,c.wHour,c.wMinute,c.wSecond,c.wMilliseconds/10);
..

    CTimeSpan ts = 60*60*24; //
    CTime t1( 2007, start_month, start_day, 0, 0, 0 );
    CTime t2( 2007, end_month, end_day, 23, 59, 59 );
    t2 += 1;

    CString data_file_name;

    for (int i = 0; t1 < t2; t1 += ts, i++)
    {
        for (int hour = start_hour; hour < 24; hour++)
        {
            data_file_name.Format(_T("./_minAnalysis_data/%02d_%02d_%02d_data"), t1.GetMonth(), t1.GetDay(), hour);
            ReadDataFile(data_file_name, i * 24 + hour);
        }
    }


    time_slot = (int)ts.GetTotalHours();


MSDN 검색의 생활화!!!

 

'my way > language' 카테고리의 다른 글

CTime, xcopy  (0) 2007/07/03
C++ double pointer  (0) 2007/06/26
TRACKBACK 0 AND COMMENT 0




ARTICLE CATEGORY

분류 전체보기 (356)
the fairy story (0)
bla bla bla (84)
fan service (125)
something to ... (68)
trip to other ... (31)
my way (17)
photo story (31)

CALENDAR

«   2012/02   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      

ARCHIVE