So

Code:

del $sourcefile
move "d:\somenewfile.xml" "d:\somefile.xml"



would work.

Better (safer) would be

Code:

move "d:\somefile.xml" "d:\somefile.old"
move "d:\somenewfile.xml" "d:\somefile.xml"

_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.