Support 805.461.7300
Sales
Our Technology. Your Success.

Export database name with Date Stamp added to the name

After exporting a file with the Export Setup window, use this command to rename that exported file. Pull down the Edit menu to Command (or add an Edit > Command event to your script) and run this command:

copy file "C:\Program Files (x86)\AccuZIP6 5.0\Demo\demofile.csv" to "C:\Program Files (x86)\AccuZIP6 5.0\Demo\demofile-"+ALLT(STR(YEAR(DATE())))+PADL(ALLT(STR(MONTH(DATE()))),2,"0")+".csv"

In the command, change the path to the full path of the file and location that you're changing. This command assumes you're exporting a csv file.

« Back to Commands

We do a lot of direct mail and use AccuZIP6 often. I can't tell you how great it is to hear a pleasant voice on the other end of the phone helping you through some tough spots.
D.O., Montville, NJ