OK - I've been pulling my hair out with this now for a while. Tried VBS - n'good. Tried Robocopy in a batch file, - reads the %1 variable with a trailing "\" after the file name (and if I break it doen with %~pd etc it still fails) so that's no use. Back to KiXtart. I now have a different way of looking at it:

Copy $file "c:\ftp Archive\"

Select

Case Instr($file, "Peterborough")
COPY $file \\xxx.xxx.xxx.xxx\DropIn\Peterborough\

Case Instr($file, "Portsmouth")
copy $file \\xxx.xxx.xxx.xxx\DropIn\Portsmouth\

Case Instr($file, "Sunderland")
copy $file \\xxx.xxx.xxx.xxx\DropIn\Sunderland\

Case Instr($file, "Hartlepool")
copy $file \\xxx.xxx.xxx.xxx\DropIn\Hartlepool\

Case Instr($file, "FTP_TEST")
copy $file \\xxx.xxx.xxx.xxx\DropIn\


EndSelect

It's called from a batch file - runkix.bat and contains the line:

kix32.exe $file=%1 c:\scripts\Filecopy.kix.

I've tried kix32.exe $file=^%1 c:\scripts\Filecopy.kix but that fails.

The conf file for YGF contains the line:

LaunchApplication=Runkix.bat $file

And $file is where the path and filename is stored and it is this I have to pass to the KiXtart script. Tried calling the script direct from the conf file but it don't work.

Any ideas anyone?