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