//------------------------------------------------------------------------------------------------------ // FileSizeK //------------------------------------------------------------------------------------------------------ __int64 FileSizeK(DWORD high, DWORD low) { __int64 k = 0; if (high != 0) { k = high; k < <= 22; // shift left 32 since high order, then right 10 to divide by 1024 }
//ExpandEnvironmentStrings gets the windows env, GetEnvironmentVariable gets the user define env ExpandEnvironmentStrings(sEnvNameWithPercent.c_str(), tchPath, MAX_PATH);
//------------------------------------------------------------------------------------------------------ // DeleteFiles //------------------------------------------------------------------------------------------------------ //only delete all files under path, do not delete sub path UTIL_API void DeleteFiles(const TSTRING & sPath) { if(sPath.empty()) return;