PeopleCode : How to check whether a specific file exits in a given path
Local array of string &arrFileExists;
Local string &strDestinationPath, &strFileDir,
&strEmpFileName, &strTaoName;
&strFileDir = X_MIS_LD_HC_RUN.FILE_PATH.Value;
&strEmpFileName = X_MIS_LD_HC_RUN.FILE_NAME.Value;
&strTaoName = X_MIS_LD_HC_RUN.FILE_NAME2.Value;
&strDestinationPath = &strFileDir | "/" |
&strEmpFileName | ".txt";
If FileExists(&strDestinationPath, %FilePath_Absolute)
And
FileExists(&strFileDir |
"/" | &strTaoName | ".txt", %FilePath_Absolute) Then
Else
MessageBox(0, "", 31000, 148,
"Message Not Found");
End-If;
Comments
Post a Comment