AnsweredAssumed Answered

System Level Script 'Aborts Unexpectedly' Windows Server 2012 FMS13

Question asked by chrisj on Feb 7, 2014
Latest reply on Feb 18, 2014 by user19752

Hi guys,


I'm on a Windows 2012 Server running FMS13.


I have written a very simple .bat file which simply copies a .csv file from /data/documents/ to a server share.


Running the .bat in CMD prompt or Powershell successfully copies the file.


I've tried to set up a script schedule in FMS13.


I can see the .bat file in the drop down menu in step 1.

I have also added an admin user account to run the script by.


The event log gives me this error:

Error154TF_FMS2Schedule "Batch Script" aborted; "ProcessCSVfiles.bat" could not be found or is invalid


I don't think this is a very helpful nor true description.

1) The file does exists and has already be found.

2) It is not invalid as it runs correctly from the cmd prompt


I imagine it is a permissions issue? But I am completely stumped having given the file itself full control to the all 'Users' account, it can't get any more relaxed than that.


The .bat file simply says this:



SET PSFPath=\sharename older

SET inbox=C:Program FilesFileMakerFileMaker ServerDataDocumentsinbox

SET sent=C:Program FilesFileMakerFileMaker ServerDataDocumentssent


@echo off

FOR /F "delims=|" %%I IN ('DIR "%inbox%*.csv" /B /O:D') DO COPY "%inbox%%%I" "%PSFPath%" & MOVE "%inbox%%%I" "%sent%" & EXIT


I'd really appreciate any insight anyone can offer


Thanks so much