Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


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.

  1. In 16 bit WinBatch it uses either spaces or the | character.

  2. In 32 bit WinBatch it accepts tabs or the | character.
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 the context of a list of files, the | character is a mere delimiter and not a OR.


Article ID:   W13230
Filename:   Delimit a List of Files.txt