Importing records and error handling from batch file

Hello all,


I'm new at using Sage 100 so you'll have to forgive me if this is a dumb question. I have been tasks with help automating some parts of the system.


Currently a batch file is launched to import records, it basically just uses the following:

PVXWIN32.EXE ..\LAUNCHER\SOTA.INI ..\SOA\Startup.M4P -ARG DIRECT UION avv logix PUI VIWI0O MANUAL

Roughly 20 people create orders that are imported into the system as records, but they do not always fill out the details correctly or they do something in there order that breaks the import.

There is one person who runs the batch file and is shown a small gui window listing all the records imported and those that failed. The user ends up having to manually fix and re-run the batch file, track down the order number to find out who created it, and contact them so they can fix it..


What I'm wanting to do is find a way to automate this, in that if there is a failed record entry, it is sent to the person who originally created the data for the record via email, the record(s) is/are removed, and the import is ran with no errors.

A separate question, is there any type of return values or anyway I can see what is going on? something like a built-in echo?

Is there any sort of command-line reference besides what I've found that just describes the above command?


Should I scrap the whole batch process for an alternative approach? I've read some have just used there own code.

Thanks,

Shawn