export_menus.cmd 444 B

12345678910
  1. SET WEBROOT=http://localhost:81/trunk
  2. SET EXPORT=%WEBROOT%/webservices/export.php
  3. SET USER=admin
  4. SET PWD=admin
  5. REM The order (numbering) of the files is important since
  6. REM it dictates the order to import them back
  7. wget --output-document=1.menus.xml --post-data="auth_user=%USER%&auth_pwd=%PWD%&operation=login" "%EXPORT%?expression=SELECT menuNode WHERE type%%3D%%27application%%27 OR type%%3D%%27administrator%%27&format=xml"
  8. pause