Delete Pending Files before running another in a script

All things related to the Script feature of AccuZIP6, including the Script Monitor.

Moderators: Steve, Terry, Donna, Dave, Eric, MartyH, Kristen, Chrissy, Geoff, Vince

Post Reply
User avatar
Posts: 1912
Joined: Tue Sep 19, 2006 3:29 pm

Delete Pending Files before running another in a script

Post by Eric » Wed Mar 07, 2007 10:20 am

If you run a script that automatically opens a file, validates it, and runs it through NCOA, the script will pause if any files are left pending. If there shouldn't be any pending files, you may want to add a command to your script that deletes pending files, so your pending files will be at 0 prior to validation.

In AccuZIP6, pull down the Edit menu to Command, then create a new command. Name the command Delete All Pending Files. In the Command Statement Syntax area, paste the following command:

Code: Select all

Delete File "C:\Program Files\AccuZIP6 5.0\iNCOALink\*.cks"
Close the Command window and close your database, then pull down the Special menu to Script.
Edit your script, then in the Script Editor, add the EDIT menu > COMMAND event.
Select the Delete All Pending Files command. Click Auto Run and click Save.
Move this event to right above the Validate event, then save the script.

Now when you run your script, any pending files will be deleted before your list gets Validated and processed on the NCOALink servers.
Chat with an AccuZIP6 technician weekdays from 7-4 PST with AccuZIP6 Live Online Support

Post Reply