How FileMove Works
Keywords: filemove
Question:
There appears to be a bug in the FileMove function in the version of WIL that is included with winbatch99 - Mar 19 1999 build (99d).If the following series of commands are issued:
;---begin of snip--- ;spec_file_list=FileItemize("*.pab|*.pst|*.crd|*.htm|*.html") spec_file_list=FileItemize("*.pab|*.pst|*.crd|*.htm")NOTE: there appears to be a bug in the FileMove procedure in the masking... when *.htm is set, it moves all files beginning with *.htm, even *.html2, etc.FileMove(spec_file_list, "c:\data\*.*", @False) ;; now we have a copy of the special files ;---end of snip---So... it appears that FileMove is acting on three letter extensions, and not properly preserving the full file name.Am i missing something? Is there a fix to this?
Answer:
I think Windows may be handing us the MS-DOS version of the name. This is the way it works.
Article ID: W14363Filename: FileMove Function.txt