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.

FileAppend and File List with Path Information

Keywords:      fileappend fileitemize 

Question:

I'm using FileItemize to build a file list, then AskItemList to let my users choose a sublist of files. I want to then use that as my sourcelist in the first parameter of FileAppend. The problem is that FileItemize does not return a full path to the file, so the FileAppend is complaining that the from file does not exist. Suggestions?

Answer:

You can use the function FileItemPath, as follows:
       
Dirchange("C:\temp")
tofile=Strcat(DirGet(),"Appended.txt")
fromlist = FileItemPath("*.wbt")	   ; get file list
FileAppend(fromlist, tofile)

Article ID:   W13221
Filename:   Build a Delimited Dir List for FileAppend File List.txt
File Created: 2001:01:03:12:01:28
Last Updated: 2001:01:03:12:01:28