Hello, im trying to determine if a folder contains any files, but there are rules:
-> If folder has no files, do nothing
-> If folder has no files, but contains mytextfile.txt then delete mytextfile.txt
-> If folder does contain files, loop through each file and save the filenames to mytextfile.txt
I was thinking of using FindFirst and FindNext, but i am a bit sketchy as to how to approach this.
Much appreciated if someone can help me out.
Thank you
-> If folder has no files, do nothing
-> If folder has no files, but contains mytextfile.txt then delete mytextfile.txt
-> If folder does contain files, loop through each file and save the filenames to mytextfile.txt
I was thinking of using FindFirst and FindNext, but i am a bit sketchy as to how to approach this.
Much appreciated if someone can help me out.
Thank you