for getting files names in a folder Directory.GetFiles(File_Path) can be used to get file paths as a list, if you loop through that you will be able to get the file names
for generating bare code you could use 3rd party API which accepts inputs and returns bar code image.
if you are looking for non license APIs, you will find quite a few on the web