Author Topic: Macros for exporting/importing all options without prompting?  (Read 2622 times)

rowbearto

  • Senior Community Member
  • Posts: 2344
  • Hero Points: 132
I'm looking for macros where I can do an "export all options" without any user prompting, and also corresponding macro for "import all options" without user prompting. These macros would take as input the path to the zip file to export/import the options to. This would correspond to what I'm pointing to in the attached picture.

Does it exist? If so, what are they?

Thanks,
Rob

Dennis

  • Senior Community Member
  • Posts: 3998
  • Hero Points: 521
Re: Macros for exporting/importing all options without prompting?
« Reply #1 on: March 02, 2018, 03:47:30 PM »
The command you are looking for is "export-options -a".  Currently, it will still prompt for a path.  I will put a tweak into the next hot fix so that you can specify a file name on the command line.  "export-options -a /tmp/opts.zip"

rowbearto

  • Senior Community Member
  • Posts: 2344
  • Hero Points: 132
Re: Macros for exporting/importing all options without prompting?
« Reply #2 on: March 02, 2018, 04:00:18 PM »
Thanks Dennis!

What about for importing the options without prompt? Will import_options(fromfile) work, or does that also need to be tweaked to not prompt?

Dennis

  • Senior Community Member
  • Posts: 3998
  • Hero Points: 521
Re: Macros for exporting/importing all options without prompting?
« Reply #3 on: March 02, 2018, 04:11:07 PM »
import_options would be quite a bit harder to tweak not to prompt.  It already will take a filename, at that point, if you want to import everything, all you have to do is hit Import.