I have saved a number of variables via DumpSave to a MX file called file.mx.

To read the file I have used: Get["file.mx"].

How can I find out what the variable names are that are contained in file.mx inside of a notebook file which already contains other variables?

I have read the I can call e.g. Names["Global`*"], but then all variables are listed.

  • $\begingroup$ Can you create a new notebook with another kernel and use Get["file.mx"] and Names["Global`*"] there? $\endgroup$
    – Ray Shadow
    May 21, 2017 at 11:45
  • 1
    $\begingroup$ Somewhat related: How to find variables set through Get? and DumpSave for the forgetful. $\endgroup$
    – Ray Shadow
    May 21, 2017 at 11:49
  • $\begingroup$ Use @Shadowray suggestion, just compare Names["Global`*"] before and after Get. $\endgroup$
    – Kuba
    May 21, 2017 at 12:14


Browse other questions tagged or ask your own question.