Jump to content

Logo

* * * * - 1 votes

Solved : windows Extraction without UXEXT


  • You cannot reply to this topic
No replies to this topic

#1 Raphael

    Newbie

  • Members
  • 12 posts
  • Gender:Male
  • Location:Paris

Posted 23 January 2009 - 11:01 AM

Helloworld

It is possible to use a combinaison of uxlst and uxadd to extract and reimport.
Here is a solution on windows to extract user and node objects in text file:

set source_node=%1
set nodefile=node_file.txt
set userfile=user_file.txt
%uxexe%\uxlst NODE TNODE^=* NODE^=%source_node%>%nodefile%
%uxexe%\uxlst USER USER^=* NODE^=%source_node%>%userfile%

Then you need to parse these file to compose the correct uxadd lines:

set trgt_node=%1
set node_file=node_file.txt
set user_file=user_file.txt
FOR /F "tokens=1,2* skip=4 delims= " %%A IN (%user_file%) DO (%uxexe%\uxadd USER USER=%%A PROF=%%B CODE=%%C BOTH NODE^=%trgt_node%)
FOR /F "tokens=1* skip=4 delims= " %%A IN (%node_file%) DO (
if !%%B==! (%uxexe%\uxadd NODE TNODE=%%A NODE^=%trgt_node%) else (%uxexe%\uxadd NODE TNODE=%%A LABEL=\"%%B\" NODE^=%trgt_node%))






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users