; pro mysaveall, prefix=prefix ;+ ; NAME: ; MYSAVEALL ; ; PURPOSE: ; Save "all" current session in a straightforward and safe way ; ; CATEGORY: ; Utility - Saving ; ; WRITTEN FILES: ; SAVEFILE defined as in program listing ; ; MODIFICATION HISTORY: ; 01 Feb 2007 Adapted from hiw own MYSAVE & MYSAVECOM by Mattia Vaccari ; ; 25 May 2007 Changed from procedure into batch file to actually ; allow saving of variables!;-) (Mattia Vaccari) ;- if not(keyword_set(prefix)) then prefix='mysaveall' date=bin_date(systime(0)) date(0)=date(0)-2000 dates=string(date,format='(3i2.2,"_",3i2.2)') savefile=prefix+'_'+dates+'.save' print,'Opening save file: ',savefile save,filename=savefile,/compress,/all,/verb end