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

Functions

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

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:   W14363
Filename:   FileMove Function.txt
File Created: 2001:01:15:10:29:14
Last Updated: 2001:01:15:10:29:14