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);
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

PREV