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

As always, thanks for your product. We in the industry TRULY appreciate the fact that YOU get back to us. You have NO IDEA how important that is.
T.G., Berlin, MD