CH375生成文件的問(wèn)題[求助]

用CH375生成單個(gè)文件的時(shí)候,莫名的多出來(lái)10多個(gè)文件夾和文件,亂碼的文件名字。不知道為什么?誰(shuí)有這方面的經(jīng)驗(yàn)介紹介紹啊,我真的是不知道為什么了, 201212515244096.gif

strcpy((uchar *)mCmdParam.Open.mPathName,"/AAA/AAA0000.BIN"); mCmdParam.Open.mPathName[11]=Head_Rote[0]; mCmdParam.Open.mPathName[12]=Head_Rote[1]; mCmdParam.Open.mPathName[13]=Head_Rote[2]; mCmdParam.Open.mPathName[14]=Head_Rote[3]; i = CH375FileOpen( ); if(i==ERR_SUCCESS) { i=CH375FileClose(); } else if ( i == ERR_MISS_FILE ) { for(Ct=0;Ct strcpy((uchar *)mCmdParam.Open.mPathName,"/AAA/AAA0000.BIN"); mCmdParam.Open.mPathName[11]=Head_Rote[0]; mCmdParam.Open.mPathName[12]=Head_Rote[1]; mCmdParam.Open.mPathName[13]=Head_Rote[2]; mCmdParam.Open.mPathName[14]=Head_Rote[3]; i = CH375FileCreate(); mCmdParam.Modify.mFileSize = 0xFFFFFFFF; mCmdParam.Modify.mFileAttr = 0xff; /* 輸入?yún)?shù): 新的文件屬性,為0FFH則不修改 */ mCmdParam.Modify.mFileTime = MAKE_FILE_TIME(bcd_sec(Rtime[2]),bcd_sec(Rtime[1]),bcd_sec(Rtime[0])); mCmdParam.Modify.mFileDate = MAKE_FILE_DATE(bcd_sec(Rtime[6])+2000,bcd_sec(Rtime[5]),bcd_sec(Rtime[4])); i = CH375FileModify( ); /* 修改當(dāng)前文件的信息,修改文件長(zhǎng)度 */ i=CH375FileClose(); if(i!=ERR_SUCCESS) DispUsbErro(i); //initial file for(Ct=0;Ct strcpy((uchar *)mCmdParam.Open.mPathName,"/AAA/AAA0000.BIN"); mCmdParam.Open.mPathName[11]=Head_Rote[0]; mCmdParam.Open.mPathName[12]=Head_Rote[1]; mCmdParam.Open.mPathName[13]=Head_Rote[2]; mCmdParam.Open.mPathName[14]=Head_Rote[3];

i = CH375FileOpen( ); for(i=0;i<4;i++) FILE_DATA_BUF[File_Data+i]=0; FILE_DATA_BUF[4] =Rtime[6]; // 寫入年月日 FILE_DATA_BUF[5]=Rtime[5]; FILE_DATA_BUF[6]=Rtime[4]; FILE_DATA_BUF[7]=Rtime[2]; // 寫入時(shí)分 FILE_DATA_BUF[8]=Rtime[1]; mCmdParam.Locate.mSectorOffset=0; CH375FileLocate(); mCmdParam.WriteX.mDataBuffer=&FILE_DATA_BUF[0]; mCmdParam.WriteX.mSectorCount=1; CH375FileWriteX(); i=CH375FileClose(); }


你好,這個(gè)問(wèn)題已在郵件中回復(fù)。


只有登錄才能回復(fù),可以選擇微信賬號(hào)登錄

国产91精品新入口,国产成人综合网在线播放,九热这里只有精品,本道在线观看,美女视频a美女视频,韩国美女激情视频,日本美女pvp视频