WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

File Operations

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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
File Created: 1999:04:15:16:52:38
Last Updated: 1999:04:15:16:52:38