How to save all the variable with a filename containing the Timestamp. For example:
If the current time is 2:30:56 PM
, The file name should be FileName_143056
.
I am currently using
Names["Global`*"] (*Check they're there*)
DumpSave["G:\\Mathematica\\dump.mx", "Global`"];
This worked out
out = FileNameJoin@{$UserDocumentsDirectory,
"MathematicaOutput" <> ToString /@ Date[] <> ".mx"}
DumpSave[out, "Global`"]
DateString
andStringJoin
. $\endgroup$