Builder scripts analyze your GN3 system, and build a series of batch files you can later run to export and import data.
There are several VB script for that purpose:
All the scripts need to reside in the same folder. The recommended folder name is C:\GN3-2-GN4.
We recommend you to run scripts on the GN3 server.
The main script is GN3-2-GN4.VBS. Run this script in an Administrator Command Prompt Window by cscript command.
Customize script
There are several parameters to customize:
' Export type GN4 1.4 (valid for 1.5 and 1.6) or 1.3
dim gn4Target
gn4Target="1.4"
' Access data to server GN3, if empty, reads from registry
dim GN3Server,GN3Database,GN3User,GN3Password
GN3Server=""
GN3Database=""
GN3User=""
GN3Password=""
' Gn3Export path
dim cgn3export
cgn3export="C:\gn3-2-gn4\Gn3Export.exe"
' srv4 path
dim csrv4
csrv4="c:\Tera\gn4\bin\srv4"
' cmd4 path
dim ccmd4
ccmd4="c:\Tera\gn4\bin\cmd4"
dim ccmd4cred
ccmd4cred="-username Administrator -password Administrator"
' XML Output dir with the trailing \
dim OutDirXML
OutDirXML="C:\gn3-2-gn4\exportXML\"
' CMD Output dir with the trailing \
dim OutDirCMD
OutDirCMD="C:\gn3-2-gn4\exportXML\"
' TXT Output dir with the trailing
dim OutDirTXT
OutDirTXT="C:\gn3-2-gn4\exportXML\"
' Translation XSL
dim GN3ChangeTitleFile
GN3ChangeTitleFile="C:\gn3-2-gn4\GN3Change.xsl"
' Title filter
dim condIdTitle
condIdTitle=">0"
' Basket filter
dim condIdBasket
condIdBasket=">0"
' Desk filter
dim condIdDesk
condIdDesk=">0"
' Edition filter
dim condIdEdition
condIdEdition=">0"
' Edition template filter
dim condIdEdTemplate
condIdEdTemplate=">0"
Note about condxxx filters: set as "<0" to exclude some data from export; leave as ">0" to include it.