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 love the database and how simple it is for us to make simple codes as our business always has since 1955...We are grateful to you and your staff that take client service so seriously.
K.W., Hobe Sound, FL