Lucky.2811
Active Member
Hi List,
I am trying to list all file names in a folder using below BSFNs. Although the first BSFN (Find First File Matching Wildcard) retrieves the file handle the consecutive BSFN is not fetching file name. Not sure if I am missing something here. For now I am testing this in local fat client. It is Windows operating system. I expected these BSFNs to work on Windows but unfortunately not working for me. Any help would be appreciated.
Sample code looks like this
evt_szRecord_APTA
evt_CDHandle
evt_TargetDirectory
OPT: Using Defaults
0001 VA evt_TargetDirectory = "C:\NPN"
0002 Find First File Matching Wildcard
VA evt_CDHandle <> BF hFile
VA evt_TargetDirectory -> BF szTargetDirectory
VA evt_szRecord_APTA <- BF szFileName
0003 Find Next File Matching Wildcard
VA evt_CDHandle <> BF hFile
VA evt_szRecord_APTA <- BF szFileName
0004 Find Next File Matching Wildcard
VA evt_CDHandle <> BF hFile
VA evt_szRecord_APTA <- BF szFileName
I am trying to list all file names in a folder using below BSFNs. Although the first BSFN (Find First File Matching Wildcard) retrieves the file handle the consecutive BSFN is not fetching file name. Not sure if I am missing something here. For now I am testing this in local fat client. It is Windows operating system. I expected these BSFNs to work on Windows but unfortunately not working for me. Any help would be appreciated.
Sample code looks like this
evt_szRecord_APTA
evt_CDHandle
evt_TargetDirectory
OPT: Using Defaults
0001 VA evt_TargetDirectory = "C:\NPN"
0002 Find First File Matching Wildcard
VA evt_CDHandle <> BF hFile
VA evt_TargetDirectory -> BF szTargetDirectory
VA evt_szRecord_APTA <- BF szFileName
0003 Find Next File Matching Wildcard
VA evt_CDHandle <> BF hFile
VA evt_szRecord_APTA <- BF szFileName
0004 Find Next File Matching Wildcard
VA evt_CDHandle <> BF hFile
VA evt_szRecord_APTA <- BF szFileName