How to Specify (Delimit) a List of Files
Keywords: file delimiters list of files
Question:
How do I delimit a list of files in a list?Answer:
To delimit items in a list:size = filesize("C:\iexplore\cache\*.*|C:\iexplore\*.dat|C:\iexplore\globhist.htm")or, another example:list=FileItemize("P*.CFR|P*.WOR|P*.TRF")No spaces. No commas. Use vertical bars to delimit items in the list.The file functions that can accept a list of files or wildcards need *some* kind of delimiter between the files/wildcards.
If you are using 32 bit WinBatch, spaces will not work as they can get confused with long file names with spaces in them.
- In 16 bit WinBatch it uses either spaces or the | character.
- In 32 bit WinBatch it accepts tabs or the | character.
In the context of a list of files, the | character is a mere delimiter and not a OR.
Article ID: W13230Filename: Delimit a List of Files.txt